Abstract
Rapid growth of the World Wide Web has significantly changed the way we share, collect, and publish data. Vast amount of information is being stored online, both in structured and unstructured forms. Regarding certain questions or research topics, this has resulted in a new problem—no longer is the concern of data scarcity and inaccessibility but, rather, one of overcoming the tangled masses of online data.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
In Automated Data Collection with R Munzert et al. state that “[t]he first way to get data from the web is almost too banal to be considered here and actually not a case of web scraping in the narrower sense.”
- 2.
- 3.
- 4.
- 5.
An example is provided in Automated Data Collection with R in which they use a similar approach to extract desired CSV files scattered throughout the Maryland State Board of Elections websiteMaryland State Board of Elections website.
- 6.
You can learn more about selectors at flukeout.github.io
- 7.
You can simply assess the name of the ID in the highlighted element or you can right click the highlighted element in the developer tools window and select Copy selector. You can then paste directly into `html_nodes() as it will paste the exact ID name that you need for that element.
- 8.
See Sect. 16.2.2 Scraping Specific HTML Nodes for details regarding the element selector process.
- 9.
Read more about OAuth athttps://oauth.net/
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
Bibliography
Munzert, S., Rubba, C., Meißner, P., & Nyhuis, D. (2014). Automated data collection with R: A practical guide to web scraping and text mining. John Wiley & Sons.
Nolan, D., & Lang, D. T. (2014). XML and Web Technologies for Data Sciences with R. Springer.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Boehmke, B.C. (2016). Scraping Data. In: Data Wrangling with R. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-45599-0_16
Download citation
DOI: https://doi.org/10.1007/978-3-319-45599-0_16
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-45598-3
Online ISBN: 978-3-319-45599-0
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)