# Collect tweets for H2020 MOOD This project collects tweets based on a list of keywords or/and twitter accounts in the [H2020 MOOD](https://mood-h2020.eu/) framework Keywords and Twitter accounts lists have been defined by H2020 MOOD partners : * [keyword](mood-tetis-tweets-collect/params/keywordsFilter.csv) * [twitter account](mood-tetis-tweets-collect/params/accountsFollowed.csv) **To be compliant with Twitter's [Terms of Service](https://developer.twitter.com/en/developer-terms/agreement-and-policy)** this repository doesn't contains any tweet nor Twitter credentials. Users who wants to use this project have to create a [Twitter developer account](https://developer.twitter.com/en) ## Installation This project has only been tested on python3.7. ### Dependencies Install all dependencies using pip: ```shell pip install -r requirements.txt ``` ### Twitter credentials A credentials.py has to be created using the [template](mood-tetis-tweets-collect/params/template-credentials.py) 1. First copy the template : ```shell cp params/template-credentials.py params/credentials.py ``` 2. Edit credentials.py with your own Twitter account credentials ## Run The run of this scripts will create a log file. The scripts can be launched using this command : ```shell python3 collectTweets.py ```