Description : A Twitter bot to crawl intressting tweet about new tech and seek the posted urls in depth
The configuration is inside the python script :
1 - Installing the dependencies
pip install -r requirements.txt
2- Adding Twitter API Credential
Add API TOKENS in environment and trigger the script.
consumerKey = os.environ['consumer_key']
consumerSecret = os.environ['consumer_secret']
accessTokenKey = os.environ['access_token_key']
accessTokenSecret = os.environ['access_token_secret']
You'll need to add list of the people you follow, and get the List id
# ...
list = api.GetListMembers(list_id='904980544005574656')
for l in list:
# ...
You can customize the hashtag that you need by fullfulling the follow list :
# ...
hashtag = ["robot","cloud", "azure", "aws", "apple", "tesla", "uber" ," facebook ", "linux","fintech", "lifehacking" ,"google ", "docker", "devops", "bigdata", "datascience", "bitcoin", "IOT ", "AI ", "hack", "hacking", "lifestyle"]
# ...
Unless you have a business account twitter will apply a daly quota / monthly quota : Please refer to twitter error table :
# ...
except twitter.error.TwitterError as e:
# ...