Skip to content

Commit 7f7f341

Browse files
honzajavorekTC-MO
andauthored
fix: use abstract Markdown numbering
Co-authored-by: Michał Olender <[email protected]>
1 parent 46f74c3 commit 7f7f341

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sources/academy/webscraping/scraping_basics_javascript2/12_framework.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ await crawler.run(['https://warehouse-theme-metal.myshopify.com/collections/sale
5353
In the code, we do the following:
5454

5555
1. Import the necessary module.
56-
2. Create a crawler object, which manages the scraping process. In this case, it's a `CheerioCrawler`, which requests HTML from websites and parses it with Cheerio. Other crawlers, such as `PlaywrightCrawler`, would be suitable if we wanted to scrape by automating a real browser.
57-
3. Define an asynchronous `requestHandler` function. It receives a context object with Cheerio's `$` instance and a logger.
58-
4. Extract the page title and log it.
59-
5. Run the crawler on a product listing URL and await its completion.
56+
1. Create a crawler object, which manages the scraping process. In this case, it's a `CheerioCrawler`, which requests HTML from websites and parses it with Cheerio. Other crawlers, such as `PlaywrightCrawler`, would be suitable if we wanted to scrape by automating a real browser.
57+
1. Define an asynchronous `requestHandler` function. It receives a context object with Cheerio's `$` instance and a logger.
58+
1. Extract the page title and log it.
59+
1. Run the crawler on a product listing URL and await its completion.
6060

6161
Let's see what it does when we run it:
6262

0 commit comments

Comments
 (0)