For a quick and dirty solution,
you can also copy the content you wish to scrape and
then read your clipboard into R using the read.delim()
function.
clipboard <- read.delim("clipboard")
clipboard <- read.delim(pipe("pbpaste"))
With these couple of techniques, you would be surprised how much data you can scrape from the web. Wiki pages, news articles, and even social media posts are all fair game.
If you wish to learn more about web scraping, We recommend learning about
rvest
package in R and,The core idea of web crawling is to follow links and scrape the content of the linked pages. This is a more advanced topic and is not covered in this course, but feel free to explore it on your own.
These sources are a good starting point: