This week is dedicated primarily to a lab to give you the tools for scraping data from websites. The only reading for this week is one that uses text data scraped from the Danish parliament (to give motivation for the benefits of scraping).

Readings

  1. Intergroup Bias in Parliamentary Rule Enforcement
    Political Research Quarterly, 2016, 69 (4): 692-702.
    Frederik Hjorth

In-class exercise

Drag this link to your bookmarks or favorites in your web browser: SelectorGadget
Code to scrape the 2017 Danish municipal elections results: here
Code to scrape the 2021 Danish municipal elections results: here
Coding exercise to scape Elizabeth Warren’s plans: here