All Apps and Add-ons

App for Twitter Data: How to change the api call to add URL arguments?

nileena
Path Finder

I downloaded the App for Twitter Data. As of now, the script stream_tweets.py is feeding live twitter data into my Splunk instance. What do I edit in order to filter the stream and index only the tweets that contain certain words or hashtags? Basically, I want to add an API request parameter. Please help!

0 Karma

davidfstr
Explorer
  • Locate the API call to Twitter in stream_tweets.py. Determine the API URL it is hitting.
  • Locate the docs for that API URL in Twitter's API docs.
  • Look for a parameter or similar to that API that performs the filtering you want.
  • Alter stream_tweets.py to make the API call with the altered parameters.
  • Test it.
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...