Web Scraping in the Statistics and Data Science Curriculum: Challenges and Opportunities

Mine Cetinkaya-Rundel, Mine Dogucu

Research output: Contribution to journalArticlepeer-review

Abstract

Best practices in statistics and data science courses include the use of real and relevant data as well as teaching the entire data science cycle starting with importing data. A rich source of real and current data is the web, where data are often presented and stored in a structure that needs some wrangling and transforming before they can be ready for analysis. The web is a resource students naturally turn to for finding data for data analysis projects, but without formal instruction on how to get that data into a structured format, they often resort to copy-pasting or manual entry into a spreadsheet, which are both time consuming and error-prone. Teaching web scraping provides an opportunity to bring such data into the curriculum in an effective and efficient way. In this paper we explain how web scraping works and how it can be implemented in a pedagogically sound and technically executable way at various levels of statistics and data science curricula. We provide classroom activities where we connect this modern computing technique with traditional statistical topics. Lastly, we share the opportunities web scraping brings to the classrooms as well as the challenges the instructors and tips for avoiding them.
Original languageEnglish
Number of pages36
JournalJournal of Statistics Education
Early online date9 Jul 2020
DOIs
Publication statusE-pub ahead of print - 9 Jul 2020

Fingerprint

Dive into the research topics of 'Web Scraping in the Statistics and Data Science Curriculum: Challenges and Opportunities'. Together they form a unique fingerprint.

Cite this