The Data Extraction Plan: A Framework for Structured Decision-Making for Data Acquisition
Pub. online: 24 November 2026
Type: Education In Data Science
Open Access
Received
28 February 2026
28 February 2026
Accepted
25 October 2026
25 October 2026
Published
24 November 2026
24 November 2026
Abstract
Data acquisition from pre-existing secondary sources is a critical yet under-documented phase of applied data science. While frameworks exist for documenting finished datasets, teaching extraction techniques, and managing the broader data science lifecycle, no formal framework structures the planning and documentation decisions that guide secondary data acquisition. We introduce the Data Extraction Plan (DEP), a five-step framework for documenting decisions made before and during acquisition of pre-existing data: Purpose & Source, Legal & Ethical Review, Access & Technical Plan, Scope & Sampling, and Validation & Contingency. Through three illustrative case studies—Basketball Reference player statistics, Wikipedia population table scraping, and Spotify application programming interface (API) audio feature extraction—we demonstrate how the DEP captures decisions that are typically invisible in traditional workflows. We argue that structured extraction planning is increasingly essential in an era when artificial intelligence (AI)-assisted code generation makes writing extraction scripts trivial while the planning decisions upstream remain consequential. By elevating secondary data acquisition and extraction from an invisible prerequisite to a first-class methodological phase, the DEP provides a necessary foundation for trustworthy data cleaning, curation, and integration.
Supplementary material
Supplementary MaterialThe supplementary material for this article is available on the official website of the Journal of Data Science at https://jds-online.org/. It may include additional results, appendices, tables, figures, code, and data.
References
Boenig-Liptsin M, Tanweer A, Edmundson A (2022). Data science ethos lifecycle: Interplay of ethical thinking and data science practice. Journal of Statistics and Data Science Education, 30(3): 228–240. https://doi.org/10.1080/26939169.2022.2089411
Bresler A (2026). nbastatR: R’s interface to NBA data. R package version 0.1.153, commit ad75a30, https://github.com/abresler/nbastatR.
Chen M, Tworek J, Jun H, Yuan Q, Ponde de Oliveira Pinto H, …, Zaremba W (2021). Evaluating large language models trained on code. arXiv preprint: https://arxiv.org/abs/2107.03374.
Dogucu M, Çetinkaya-Rundel M (2021). Web scraping in the statistics and data science curriculum: Challenges and opportunities. Journal of Statistics and Data Science Education, 29(sup1): S112–S122. https://doi.org/10.1080/10691898.2020.1787116
Horton NJ, Alexander R, Parker M, Piekut A, Rundel C (2022). The growing importance of reproducibility and responsible workflow in the data science and statistics curriculum. Journal of Statistics and Data Science Education, 30(3): 207–208. https://doi.org/10.1080/26939169.2022.2141001
Horton NJ, Stoudt S (2024). Editorial: Guidelines and best practices to share deidentified data and code. Journal of Statistics and Data Science Education, 32(3): 227–231. https://doi.org/10.1080/26939169.2024.2364737
Hutchinson B, Smart A, Hanna A, Denton E, Greer C, …, Mitchell M (2021). Towards accountability for machine learning datasets: Practices from software engineering and infrastructure. In: Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency (Elish MC, Isaac W, Zemel RS, eds.), 560–575.
Indeed (2026). Terms of Service. Indeed.com, last updated 29 September 2026, https://www.indeed.com/legal. Accessed 11 October 2026.
Kelion L (2020). Excel: Why using Microsoft’s tool caused COVID-19 results to be lost. BBC News, 5 October 2020. https://www.bbc.com/news/technology-54423988. Accessed 11 October 2026.
Nolan D, Temple Lang D (2010). Computing in the statistics curricula. American Statistician, 64(2): 97–107. https://doi.org/10.1198/tast.2010.09132
Nosek BA, Ebersole CR, DeHaven AC, Mellor DT (2018). The preregistration revolution. Proceedings of the National Academy of Sciences, 115(11): 2600–2606. https://doi.org/10.1073/pnas.1708274114
Quaranta L, Calefato F, Lanubile F (2022). Eliciting best practices for collaboration with computational notebooks. Proceedings of the ACM on Human–Computer Interaction, 6(CSCW1): Article 87. https://doi.org/10.1145/3512934
Richardson L (2026). Beautiful Soup Documentation. Beautiful Soup version 4.15.0, https://www.crummy.com/software/BeautifulSoup/bs4/doc/.
Sandve GK, Nekrutenko A, Taylor J, Hovig E (2013). Ten simple rules for reproducible computational research. PLoS Computational Biology, 9(10): e1003285. https://doi.org/10.1371/journal.pcbi.1003285
Stodden V (2020). The data science life cycle: A disciplined approach to advancing data science as a science. Communications of the ACM, 63(7): 58–66. https://doi.org/10.1145/3360646
The pandas development team (2020). pandas-dev/pandas: Pandas. Zenodo. https://doi.org/10.5281/zenodo.3509134.
The pandas development team (2026). pandas.read_html. pandas documentation, https://pandas.pydata.org/docs/reference/api/pandas.read_html.html. Accessed 11 October 2026.
Thompson C, Antal D, Parry J, Phipps D, Wolff T (2024). spotifyr: R Wrapper for the ‘Spotify’ Web API. R package version 2.2.5, commit 68bc0ae, https://github.com/charlie86/spotifyr.
Vance EA, Trumble IM, Alzen JL, House LL (2026). The Q1Q2Q3 workflow for statistics and data science collaborations. Journal of Statistics and Data Science Education, 34(3): 319–339. https://doi.org/10.1080/26939169.2025.2475775