Python command line program for recognising political views of Polish Twitter accounts. Draws a 3-axis political compass for a given Twitter account based on last 1000 tweets of that account. Training data is based on public myPolitics test results and public Twitter accounts (last 1000 tweets of each user from the dataset). Loading tweets thanks to snscrape. Compass template based on SapplyValues.
As we can see on the picture below, the data distribution is not balanced. Authoritarian and Conservative political views are underrepresented. It may be a result of less interest of people with such views in publishing their political compasses. It should be taken into account when analysing results.
Listed in file requirements.txt.
python twitter_scraper.py
python political_views_recogniser.py -train
python political_views_recogniser.py -most
python political_views_recogniser.py [twitter_username]
python political_views_recogniser.py szymon_holownia