This is a set of scripts for data collection, preprocessing, and sentiment analysis for our research in the paper "Analyzing Responses to Political News Articles on Social Media" by William Opich and Swapneel Mehta.
- You will need to install the following packages in a virtual environment.
$ pip install tweepy==4.10
$ pip install transformers
$ pip install ekphrasis
< add in any other packages to be installed here >
In order to collect the data, you will need to provide a set of API keys and access tokens from your own Twitter Developer Account.
-
< similar requirements >
-
< selection.csv > what do they need to fill and in which file collecting_twitter_posts.py