
Learn to scrape a Wikipedia table in 20 lines of code, clean and reshape data with R by selecting columns, renaming them, removing footnotes and nonnumeric values for analysis.
Explore how HTML uses tags, classes, and IDs to structure and style pages for scraping. Learn to select headings and content with tag, class, and id to extract exact data.
Learn to read html with R, extract a list of reviews by selecting elements with the review class, and loop through each item to assemble review data for consumers.
Extract and structure each review by retrieving the id, title, text, and star rating, then parse the timestamp from embedded JSON for analysis.
Learn to clean scraped data by converting reviews and stars to numbers, formatting timestamps, and preparing a ready-to-analyze data frame for any web page.
Learn to extract a list of products from a webpage using R by locating the product list container and iterating through product items, then gathering data across pages.
Learn to clean and standardize saved data by extracting numeric volume from product data and removing units. Create a new volume column while handling lists with map.
In this course you will learn:
the basics of web scraping (using tags, classes and ids)
two great R packages: Rvest and Selenium
to scrape server-side and client-side rendered pages
to get data from json API’s
If you have ever wanted to collect:
text from the internet for NLP!
numbers from websites to visualize!
tables of data from the internet to put into your model!
or anything else involving getting data from the internet.
Then this course is for you!
At the end of the course you will be able to:
Extract data from structured tables on the internet
Collect text data from a website (like reviews) and structure it in a tidy data set
Collect a diverse set of data points from a website (like products) and structure it in a tidy data set
Collect structured data from an API - ready for analysis
Scrape websites that are normally very hard to extract data from.