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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...