Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/antoinemcgrath/users-specific_topical_retweeter

This script will fetch tweets from a list of specific twitter accounts and check to see if the tweet contains keywords that are of interest before retweeting.
https://github.com/antoinemcgrath/users-specific_topical_retweeter

Last synced: 3 months ago
JSON representation

This script will fetch tweets from a list of specific twitter accounts and check to see if the tweet contains keywords that are of interest before retweeting.

Awesome Lists containing this project

README

        

# users-specific_topical_retweeter
This script will fetch tweets from a list of specific twitter accounts and check to see if the tweet contains keywords that are of interest before retweeting.

AS PROPOSED BY THE BRAIN OF Gennie https://github.com/gegebhart

Running this script requires that you have a twitter account, Twitter API keys/access and a list of users to follow. For instructions on this view file Getting_Started.txt

Once the Getting_Started.txt insturctions are followed you will be able to execute the scrypt in terminal.
The arguments are:
python3 get_tweets.py list_of_twitter_accounts.txt

For example:
python3 ~/.GITS/users-specific_topical_retweeter/get_tweets.py ~/.GITS/users-specific_topical_retweeter/representatives_twitter_accounts.txt

Will cause your API associate twitter account to start retweeting.
A list of tweets scanned (and retweeted if positive for your keywords) will be appended to tweet_id_cachelist.txt this list will prevent the script from rescanning and retweeting those tweets the next time you run the script.

THANK YOU Sunglight Foundation and Sunlight labs for the seed list of congressmembers twitter accounts: http://politwoops.sunlightfoundation.com/
It was used to start the list representatives_twitter_accounts.txt additional campagin accounts and congressional candidate accounts have been added to the list.