Skip to content

Commit 6eda491

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 952729b commit 6eda491

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

content/academy/web_scraping_for_beginners/challenge/initializing_and_setting_up.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ const crawler = new CheerioCrawler({
3131
requestHandler: router,
3232
});
3333
34-
// Add our initial requests
35-
await crawler.addRequests([
36-
{
37-
// Turn the inputted keyword into a link we can make a request with
38-
url: `https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=${keyword}`,
39-
label: 'START',
40-
userData: {
41-
keyword,
42-
},
43-
},
44-
]);
4534
4635
log.info('Starting the crawl.');
4736
await crawler.run([{

0 commit comments

Comments
 (0)