A primer on Python web site scraping

Matthew Phillips and John Wihbey provide step-by-step instructions for using the Python programming language to "scrape" data from a web site, in this case a list of prison inmates: "Most of the effort in web scraping is digging through the HTML source in your browser and figuring out how the data values are arranged. Start simple — just grab one value and print it out. Once you figure out how to extract one value, you’ll often be very close to the rest of the data."

Aug. 14, 2015

2019 AIP Science Communication Awards