Twitter allows users to mine tweets with it's API. And we now use it to find the most used words in a given number of tweets in wordcloud format.
Create a twitter account, and verify your phone number. Sign up for developer access.
- Tweepy
- Twitter API key and Access Token
- Configparser
- Wordcloud
- sklearn
- collections
pip install tweepy
pip install configparser
pip install wordcloud
pip install sklearn
pip install collections
Download the config file, add your API key, API key secret, Access Token, Access Token Secret.
Now download final.py file and open it in VS Code or in any IDE that can run python.
Enter your keyword, geolocation and set the limit.
You can now start running the code and the tweets will be collected in the CSV file.
Download visualization.py and run it to get the tweets in the wordcloud format.
This project is licensed under the MIT License - see the LICENSE.md file for details
- AI Spectrum
- Tweepy documentation
- Stack Overflow