- Downloading Anaconda / Conda for Step 3 and 4 below are optional.
- We will be using Python 3.
- Authenticate with Twitter before moving onto installation if you have not.
- Go to apps.twitter.com
- You want to
Create New App
- Type in the
name
,description
, andwebsite
of your app. Any info, or string, is fine - Agree to the
Twitter Agreement
andCreate your Twitter application
- Collect your
consumer_key
,consumer_secret
,access_token
, andaccess_token_secret
. Add them into the/twitter_sentiment/secrets.py
- Clone the repo:
$ git clone https://github.com/lekosfmi/twitter_sentiment
- Change into directory:
$ cd twitter_sentiment
- Create the environment:
$ conda create -n twitter_sentiment python=3
- Activate it:
$ source activate twitter_sentiment
- Install requirements:
$ pip install -r requirements.txt
$ python3 generate_csv.py <YOUR TOPIC>