Skip to content

A tweeter bot that crawl tweet and seek the latest tech information

Notifications You must be signed in to change notification settings

ClouDevops101/Twitter-Python-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description : A Twitter bot to crawl intressting tweet about new tech and seek the posted urls in depth

HOW It WORKS

The configuration is inside the python script :

Requierements

1 - Installing the dependencies

pip install -r requirements.txt 

2- Adding Twitter API Credential

Installation

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']

Before use

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:
# ...

Updating the hashTag

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"]
# ...

Caution

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:
# ...

About

A tweeter bot that crawl tweet and seek the latest tech information

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages