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!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...