This lesson's interactive features are locked, please to keep using them
Let's start crawling real web pages! For these remaining steps, use https://learnwebscraping.dev/practice/ecommerce/. A single product page like https://learnwebscraping.dev/practice/ecommerce/products/ashenfang-longsword-fan-1001/ is a good place to start.
Create an async getHTML function in crawl.ts. For now, it will just take a URL (in this case, the root of the site we're going to crawl).
async function getHTML(url: string);
For now, your function should:
Remember to use try/catch as appropriate for anything that could result in an error!
Run and submit the CLI tests from the root of the project.