A Python script to scrape tweets matching a hashtag by using Twitter's Explore feature. This can be used for sentiment analysis purposes or training machine learning classifiers. The code is self-explanatory. See the comments in it.
- No need to have a twitter account.
- No need to set up an app.
- Auto scroll until there is no matching tweets left.
- Prints screen name of the account, matching tweet and the tweet date.
python3 twitter_scraper.py --hashtag #nameofthehashtag