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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...