Coder Social home page Coder Social logo

debac's Introduction

Background

This project is inspired by a discussion of political romanticism at the graduate school "Romanticism as a Model" at the Friedrich-Schiller-University of Jena (Germany). It aims to find out whether right-wing populist politicians in the Bundestag (German federal parliament) relate their political arguments to the historical German romanticism.

Data

DeBAC (DeutscheBundestagsAbgeordnetenCorpus) contains Tweets by all members of the Bundestag who have verified Twitter accounts. Currently, 478 out of 709 members of the Bundestag have verified Twitter accounts. The following table shows the distribution of seats in the Bundestag, the number of Twitter accounts and the number of Tweets of different parties.

Bundestag Members Twitter Accounts Tweets
CDU 200 106 173,451
CSU 46 24 22,594
SPD 152 107 214,934
AfD 89 53 83,445
FDP 80 69 122,280
LINKE 69 56 153,400
GRÜNE 67 59 169,450
non-party 6 4 16,360
Total 709 478 955,914

(Status: 2020-03-09)

Availability

According to Twitter’s Developer Policy we are not allowed to provide downloadable datasets of Twitter Content. Instead, we provide a complete list of Tweets IDs (tweets-meta.tsv) and Python scripts (download_tweets.py) which can be used to download the content of these Tweets via Twitter API. In this way, you can reconstruct DeBAC on your local computer.

Methods

Collecting Accounts

We started collecting Twitter accounts of members of the Bundestag with the official website of the Bundestag. Since some members did not publish their Twitter accounts there, we then examined the office websites of each party where we could identify more Twitter accounts. MdB_list.tsv provides an overview of all the collected accounts and their metadata. It is possible that there are more members of the Bundestag who have Twitter accounts. For exemple, the username "verhartmannafd" seems to belong to the non-party politician Verena Hartmann. But since this is not shown on any official websites, we did not included it in DeBAC.

Getting Tweets

We used Tweepy to access Twitter API. With the Get Tweet timelines Method, we got the textual content as well as various metadata such like created_at, if_retweet etc.
Note: Due to the limitation of Twitter API, we could only get up to 3,200 of a account's most recent Tweets at the beginning of the project (Sep 2019). Since then, however, newly posted Tweets are continuously added to DeBAC.

  • Create a Twitter Developer account.
  • Create an App and generate 'Keys and tokens'
  • Create the JSON file twitter_credentials.json with the following format and in the directory DeBAC, paste your created values of API key, API secret key, Access token, Access token secret into the form:
{
  "CONSUMER_KEY":       "... value of API key ...",
  "CONSUMER_SECRET":    "... value of API secret key ...",
  "ACCESS_TOKEN":       "... value of Access token ...",
  "ACCESS_SECRET":      "... value of Access token secret ..."
}

Publication

Duan, Tinghui; Buechel, Sven; Hahn, Udo (2020): "Romantik" im aktuellen parteipolitischen Diskurs auf Twitter. In: DHd2020. Spielräume – Digital Humanities zwischen Modellierung und Interpretation. Paderborn, Germany, March 2-6, 2020. [Poster]

Acknowledgment

We thank Susanna Rücker for her support with the data analysis.

debac's People

Contributors

t-duan avatar susannaruecker avatar chlor avatar svenbuechel avatar

Watchers

James Cloos avatar Erik Fäßler avatar  avatar  avatar  avatar

debac's Issues

Add download script

Add/write a script that downloads all tweet texts given the IDs. The tweets should be saved in a new tsv file (not checked in) with columns tweet_id and text.

MdB List outdated

Very important!!!! The current list on this github is outdated! Please update it!!

Highlight stupid afd policians like peter boehringer!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.