Skip to content

Commit 952729b

Browse files
mstephen19mnmkng
andauthored
Update content/academy/web_scraping_for_beginners/challenge/initializing_and_setting_up.md
Co-authored-by: Ondra Urban <[email protected]>
1 parent a274a11 commit 952729b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

content/academy/web_scraping_for_beginners/challenge/initializing_and_setting_up.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ await crawler.addRequests([
4444
]);
4545
4646
log.info('Starting the crawl.');
47-
await crawler.run();
47+
await crawler.run([{
48+
// Turn the keyword into a link we can make a request with
49+
url: `https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=${keyword}`,
50+
label: 'START',
51+
userData: {
52+
keyword,
53+
},
54+
}]);
4855
log.info('Crawl finished.');
4956
```
5057

0 commit comments

Comments
 (0)