Added info about adding urls to queue

This commit is contained in:
JakubDrobnik 2018-11-20 14:58:29 +01:00
parent bf08400b76
commit 4339f7ae56

View File

@ -22,6 +22,7 @@ const enqueueAllUrlsFromPagination = async (page, requestQueue) => {
await page.waitForSelector('.section-back-to-list-button');
const url = page.url();
await requestQueue.addRequest({ url, userData: { label: 'detail' } });
console.log(`${url} added to queue.`);
await page.click('.section-back-to-list-button');
await sleep(5000);
}