Python for journalism: scraping, selecting and storing data
Channel: onlinejournalist
Date: 2023-02-17

This video, the third in a series made for students on the MA in Data Journalism at Birmingham City University, walks through a Python scraper, explaining how to read the code, identifying concepts from the first video and learning further programming concepts such as libraries, functions and dictionaries.

The scraper demonstrates how lists and loops are used within a scraper, how CSS selectors are used to 'target' particular pieces of information on a webpage, and some useful Python libraries for scraping.

The notebook for this video can be seen at https://github.com/paulbradshaw/MED7369-Specialist-Investigative-Journalism/blob/master/python/anExampleScraperList.ipynb

The first video in the series can be watched at https://youtu.be/hWrDUeqxqMo
The second video can be watched at https://youtu.be/vfr-RlSpwsg

More on the MA Data Journalism can be found at https://www.bcu.ac.uk/courses/data-journalism-ma-2023-24