-
Python 3 / jupyter
-
An account on the Google Cloud platform (GCP) and create a JSON file containing the GCP service account key (setup).
-
An account here and create and store the API key as an environmental variable "api_key_manifesto_project".
-
Files in the current working directory:
- JSON file containing the GCP service account key
- manifestos_parlgov_linktable.csv
pip install -r requirements.txt
The aim of this project is to analyze how the strength of populist radical right parties affect the attitude of parties in government towards international cooperation. In particular, it analyzes party manifestos with respect to their sentiment towards international cooperation and the frequencies of words related to international cooperation.
The core data and the texts of the party manifestos are retreived from the Manifesto Project API (https://manifesto-project.wzb.eu/information/documents/api). Data on the strength of populist radical right parties in the respective countries (vote share, seats share) come from the ParlGov database (http://www.parlgov.org/) and parties are defined as populist radical right according to the PopuList classifcation (https://popu-list.org).
The individual steps are described in the notebook party_manifestos.ipynb.
- Importing the modules required
- Collecting the data from the ParlGov database and the Manifesto Project API (core dataset)
- Merging and processing the data
- Visualization: diagrams on trends and populist radical right vs. other/government parties
- Estimation of the effect of the strength of populist radical right parties on the attitude of government parties towards international cooperation
- Fetching the party manifestos and text translation (Manifesto Project and Google Translate API)
- Creating word clouds for word frequencies in party manifestos