Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
config-sample.py
main.py
requirements.txt

README.md

Twitter Trend Alert System

Track any Twitter keyword, mention, or retweet in real-time and instantly alert you via email, SMS, or phone if the keywords are trending.

This should take you 40 minutes or less and with minimal coding knowledge. For a full guide of the system, please checkout the blog post: https://www.pagerduty.com/blog/how-to-twitter-trend-alert

Setup

Install Libraries

This project uses tweepy and datadogpy.

For quick installment, simply run the following command in cmd/terminal:

  pip install -r requirements.txt

Configuring API Keys

  1. Rename the file config-sample.py to config.py
  2. Enter the necessary API keys within the file.

Keyword Setup

Note: During initial setup, I recommend keeping the default keyword in order to verify that the whole system works.

You can add the Twitter keywords that you want to track in the file main.py.

If you want to track multiple keywords, do as following:

keywords = ['lebron', 'toronto raptors', 'nba']

Usage

Run python main.py in terminal and you should start seeing filtered tweets.

You can’t perform that action at this time.