Course lesson
Scrape a Webpage with a Serverless Function
Even webpages can be scraped using serverless functions!
- Duration
- 11 min
- Access
- Included
- Transcript
- Retained from source evidence
Even webpages can be scraped using serverless functions!
We can create a function using the Serverless CLI and import Axios and Cheerio. Axios is used to get the HTML from a page and then we use Cheerio to parse the HTML for our desired data and create an array of pretty printed strings from it.