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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...