
This tutorial introduces web scraping in R using the rvest and xml2 packages, covering HTML structure, CSS selectors, navigating multi-page websites, handling pagination, and storing scraped text and data for downstream analysis. It is aimed at researchers in corpus linguistics and digital humanities who want to collect text data from websites programmatically. This tutorial is part of the Language Technology and Data Analysis Laboratory (LADAL), a free, open-access research infrastructure at the University of Queensland. LADAL provides tutorials, tools, and courses for researchers working with language data. All materials are freely available at https://ladal.edu.au and are part of the Language Data Commons of Australia (LDaCA), funded by ARDC and NCRIS.
rvest package, CSS selectors, corpus linguistics, R, LADAL, text analysis, R web scraping, open educational resource, text data collection, University of Queensland, xml2 package, HTML parsing, language technology, pagination web scraping, corpus linguistics data scraping
rvest package, CSS selectors, corpus linguistics, R, LADAL, text analysis, R web scraping, open educational resource, text data collection, University of Queensland, xml2 package, HTML parsing, language technology, pagination web scraping, corpus linguistics data scraping
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
