Andreas Jungherr
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
14 Oct 2016
Andreas Jungherr Teaching 1 Comment
2016/10/14 Andreas Jungherr

Sozialwissenschaftliches Arbeiten mit Twitter-Daten (Luzern): Session 2 – Set Up and Introduction to Collecting Data on Twitter

In our second session, we focus on setting up our data collection and getting acquainted with Twitter’s APIs. We start by discussing the research process with digital trace data. Following this, we will prepare your machine for working with Python. We then will get you access to Twitter’s API. We then use a couple example scripts provided in our tutorial to get some first practice in collecting data on Twitter.

To prepare for this session or to build on the issues we discussed you could have a look at Twitter’s API documentation. Make sure to have an extended look at the data fields provided by Twitter’s API in its API objects. This will show you which information Twitter provides you with through their API and which information is available to you for your analyses.

For more information on APIs of various services have a look at Matthew A. Russell’s book Mining the Social Web (2014, 2nd ed.).

In the course we will work quite heavily with the command line of your system. So make sure you (re-)acquaint yourself with some basic commands (i.e. navigating to a specific directory through the command line et al.).

Also, keep in mind that the command line might make trouble accessing a file on your machine that has spaces in its name or in its path. In these cases, either rename your file or put quotation marks around the complete file path (e.g. cd “/Users/(…)/twitterresearch”).

Also please prepare your machine for the following sessions. First, make sure you have a Python distribution up and running. For the purposes of this course, I recommend Continuum Analytic’s Anaconda. Please install Anaconda for Python version 3.xx.

Now, make sure your system is prepared to work with Python. If you are using a Mac make sure you have Apple’s Xcode installed. If you are using a PC please install a current version of Microsoft’s Visual Studio. Please make sure your version includes both “Visual C++” and “Common Tools for Visual C++ 2015”. This is important as both programs are needed for you to run specific Python modules. In case you run in any troubles maybe have a look at this comment thread.

As a final step, please follow the procedure described in Jürgens & Jungherr (2016), p. 18.

Now your machine should be ready for the purposes of this course. You can test this by following the examples provided in this session’s code example.

Mandatory Readings:

  • Pascal Jürgens and Andreas Jungherr (2016) A Tutorial for Using Twitter Data in the Social Sciences: Data Collection, Preparation, and Analysis. Social Science Research Network (SSRN). doi: 10.2139/ssrn.2710146, pp. 15-20.

Course Material:

  • Session 2: Set Up and Introduction to Collecting Data on Twitter – Slides
  • Session 2: Set Up and Introduction to Collecting Data on Twitter – Code

Back to Course Overview.

Big Data, Computational Social Science, Course Material, Python, Using Digital Trace Data in the Social Sciences

Comment (1)

  1. Pingback: Sozialwissenschaftliches Arbeiten mit Twitter-Daten: Luzern-Edition | Too Bad You Never Knew Ace Hanna

Comments are closed.

  • Recent Posts

    • New Working Paper: Using ChatGPT and Other Large Language Model (LLM) Applications for Academic Paper Assignments
    • Interview mit hr-iNFO: Trump twittert wieder
    • Welche Rolle spielt Desinformation in den US Midterms 2022?
    • New Publication: Review of Vaccari & Valeriani – Outside the Bubble (2021)
    • Lehrveranstaltungen Wintersemester 2022/3
  • Categories

    • Conferences
    • Interviews
    • Lecture Podcast
    • News
    • Notes
    • Public Speaking
    • Publications
    • Teaching
    • Videos
  • Archives

    • March 2023 (1)
    • December 2022 (1)
    • November 2022 (1)
    • October 2022 (3)
    • July 2022 (1)
    • June 2022 (4)
    • May 2022 (2)
    • April 2022 (1)
    • February 2022 (1)
    • January 2022 (2)
    • December 2021 (3)
    • November 2021 (1)
    • October 2021 (2)
    • September 2021 (3)
    • July 2021 (1)
    • June 2021 (4)
    • April 2021 (3)
    • March 2021 (2)
    • January 2021 (1)
    • December 2020 (1)
    • November 2020 (2)
    • October 2020 (2)
    • September 2020 (1)
    • July 2020 (1)
    • June 2020 (1)
    • April 2020 (5)
    • March 2020 (2)
    • February 2020 (1)
    • January 2020 (4)
    • November 2019 (1)
    • October 2019 (2)
    • September 2019 (1)
    • July 2019 (1)
    • April 2019 (3)
    • January 2019 (1)
    • November 2018 (1)
    • September 2018 (2)
    • March 2018 (1)
    • February 2018 (1)
    • December 2017 (1)
    • October 2017 (1)
    • September 2017 (1)
    • July 2017 (2)
    • June 2017 (1)
    • May 2017 (3)
    • April 2017 (2)
    • March 2017 (2)
    • January 2017 (2)
    • December 2016 (1)
    • November 2016 (1)
    • October 2016 (17)
    • July 2016 (11)
    • June 2016 (1)
    • March 2016 (1)
    • February 2016 (2)
    • January 2016 (1)
    • November 2015 (3)
    • October 2015 (1)
    • September 2015 (3)
    • May 2015 (1)
    • April 2015 (3)
    • March 2015 (3)
    • February 2015 (3)
    • January 2015 (1)
    • October 2014 (2)
    • August 2014 (2)
    • April 2014 (1)
    • March 2014 (1)
    • February 2014 (2)
    • December 2013 (1)
    • October 2013 (3)
    • September 2013 (3)
    • August 2013 (4)
    • July 2013 (3)
    • June 2013 (2)
    • May 2013 (1)
    • April 2013 (1)
    • March 2013 (1)
    • February 2013 (1)
    • December 2012 (1)
    • November 2012 (2)
    • October 2012 (3)
    • September 2012 (3)
    • August 2012 (2)
    • June 2012 (1)
    • April 2012 (8)
    • March 2012 (1)
    • February 2012 (1)
    • October 2011 (2)
    • September 2011 (1)
    • August 2011 (1)
    • July 2011 (5)
    • June 2011 (2)
    • May 2011 (4)
    • April 2011 (1)
    • March 2011 (2)
    • February 2011 (3)
    • January 2011 (2)
    • December 2010 (3)
    • November 2010 (1)
    • October 2010 (1)
    • September 2010 (3)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (1)
    • April 2010 (4)
    • March 2010 (3)
    • February 2010 (6)
    • January 2010 (1)
    • December 2009 (3)
    • August 2009 (1)
    • April 2009 (1)
    • March 2009 (3)
    • January 2009 (2)
    • December 2008 (3)
    • November 2008 (3)
    • October 2008 (9)
    • August 2008 (1)
  • On the web

    • instagram
    • linkedin
    • twitter
    • xing
    • youtube
  • Navigation

    • Home
    • About
    • Blog
    • Publications
      • Digital Transformations of the Public Arena (2022)
      • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
      • Analyzing Political Communication with Digital Trace Data (2015)
      • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
    • Podcast: Tech and Politics
    • Media
    • Teaching
    • Impressum
  • Contact

    • Feldkirchenstraße 21
      96052 Bamberg, Germany

    • https://andreasjungherr.net/
    • andreas.jungherr[at]uni-bamberg.de
Andreas Jungherr POWERED BY United Themes™