The PlotBot is a twitter bot that does sentimental analysis on the search #amfromBot @<search_user>.
The Bot searches every 5 minutes, for a tweet with #amfromBot. If a new tweet found, it will do sentimental Analysis on the tweets from that user.
Download Python and conda from the links given below
mac : Goto https://www.python.org/downloads/ and download latest version
windows : Goto https://www.python.org/downloads/windows/ and download latest version
mac : Goto https://conda.io/docs/user-guide/install/macos.html follow directions
windows : Goto https://conda.io/docs/user-guide/install/windows.html follow directions
To verify goto (Terminal/GitBash) and type conda -V
or conda list
.
conda create -n PythonData python=3.6 anaconda
source activate PythonData
python --version
Create api keys from https://apps.twitter.com - Twitter
source activate PythonData
pip install tweepy
source activate PythonData
pip install vaderSentiment==2.5
if it doesn't work try creating a new conda env:
conda create -n newPythonData python=3.6 anaconda
source activate PythonData
pip install vaderSentiment==2.5
jupyter notebook
open PlotBot.ipynb in jupyter notebook and enter the twitter credentials. You can change botname by specifying in #
The counter can be set infinitely by while(True)
I have retrived only past 100 tweets, can increase the value.