Skip to content

Notebook to analyze the effect of populist radical right parties on government parties' attitude towards international cooperation.

Notifications You must be signed in to change notification settings

hannesoehler/party-manifestos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Party manifestos

Requirements

  • 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

Installation

pip install -r requirements.txt

Aim of the project

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.

Table of contents

  1. Importing the modules required
  2. Collecting the data from the ParlGov database and the Manifesto Project API (core dataset)
  3. Merging and processing the data
  4. Visualization: diagrams on trends and populist radical right vs. other/government parties
  5. Estimation of the effect of the strength of populist radical right parties on the attitude of government parties towards international cooperation
  6. Fetching the party manifestos and text translation (Manifesto Project and Google Translate API)
  7. Creating word clouds for word frequencies in party manifestos

About

Notebook to analyze the effect of populist radical right parties on government parties' attitude towards international cooperation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published