Skip to content

Simple Python program to scrape the tweets without Twitter API authentication.

License

Notifications You must be signed in to change notification settings

santhoshse7en/Twitter-Sentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Sentiment-Analyzer

Twitter's API is annoying to work with, and has lots of limitations. Scrape all the tweets using simple python and selenium - No API rate limits. No restrictions. Extremely fast.

Average Tweets

It appears you can ask for up to 25 pages of tweets reliably (~1200 tweets)

Dependencies

* selenium
* vaderSentiment
* chromedriver-install

Dependencies Installation

Use the package manager pip to install following

pip install -r requirements.txt

Usage

Download it by clicking the green download button here on Github. You only need to parse argument specific Twitter keyword.

python main.py --keyword 'petta'

or

python main.py -k 'petta'

Output

capture

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT