2. Collecting Tweets - wywfalcon/twitter-healthcare-analysis GitHub Wiki
#Twitter Data Collection
- Sign up for a Twitter account
- Create an application
- Go to
Twitter-Healthcare-Analysis\src\Twitter-Data-Collection\resources
and save your credential keys increndentials.json
[
{
"consumer_key" : "your_key",
"consumer_secret" : "your_secret",
"access_token" : "your_token",
"access_token_secret" : "your_token_secret"
}
]
- Select tags to download and enter them one per line in tagList.txt like so... Make sure the list isn't too long!
#cancer
#ebola
...
Streaming new tweets
- Run
stream_tweets_main.py
$ stream_tweets_main.py [destinationFolder] [credentialFolder]
Downloading old tweets
- Run
search_tweets_main.py
$ search_tweets_main.py [destinationFolder] [credentialFolder]