mirror of
https://github.com/davidjohnbarton/crawler-google-places.git
synced 2025-12-12 16:38:45 +00:00
Added czech proxy group, hadlepagefuction timeout
This commit is contained in:
parent
cea93bc74e
commit
6666f0c8a8
|
|
@ -1,7 +1,6 @@
|
|||
/**
|
||||
* Run the following example to perform a recursive crawl of a website using Puppeteer.
|
||||
*/
|
||||
|
||||
const Apify = require('apify');
|
||||
|
||||
const { sleep } = Apify.utils;
|
||||
|
|
@ -151,8 +150,10 @@ Apify.main(async () => {
|
|||
const crawler = new Apify.PuppeteerCrawler({
|
||||
launchPuppeteerOptions: {
|
||||
useApifyProxy: true,
|
||||
apifyProxyGroups: ['CZECH_LUMINATI'],
|
||||
},
|
||||
requestQueue,
|
||||
handlePageTimeoutSecs: 1200,
|
||||
handlePageFunction: async ({ request, page }) => {
|
||||
const { label } = request.userData;
|
||||
if (label === 'startUrl') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user