Skip to content

Commit 3c354c9

Browse files
committed
style: better readability for a code example in crawling lesson
1 parent 2bff9f0 commit 3c354c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/academy/webscraping/scraping_basics_javascript2/10_crawling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,12 @@ const $ = await download(listingURL);
156156
const $promises = $(".product-item").map(async (i, element) => {
157157
const $productItem = $(element);
158158
const item = parseProduct($productItem, listingURL);
159+
159160
// highlight-next-line
160161
const $p = await download(item.url);
161162
// highlight-next-line
162163
item.vendor = $p(".product-meta__vendor").text().trim();
164+
163165
return item;
164166
});
165167
const data = await Promise.all($promises.get());

0 commit comments

Comments
 (0)