Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rktst110 authored Mar 13, 2024
1 parent 32d71f5 commit 984846e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ import { BrowserName, DeviceCategory, OperatingSystemsName } from '@crawlee/bro

const { APIFY_DEFAULT_KEY_VALUE_STORE_ID } = process.env;

const NAVIGATION_TIMEOUT_SECS = 3600;
const TIMEOUT_MS = 3600000;
//const NAVIGATION_TIMEOUT_SECS = 3600;
//const TIMEOUT_MS = 3600000;

const NAVIGATION_TIMEOUT_SECS = 0;
const TIMEOUT_MS = 0;

await Actor.init();
const input = (await Actor.getInput()) as Input;
Expand Down Expand Up @@ -78,7 +81,7 @@ const puppeteerCrawler = new PuppeteerCrawler({
preNavigationHooks: [
async ({ page }, goToOptions) => {
goToOptions!.waitUntil = waitUntil;
//goToOptions!.timeout = TIMEOUT_MS;
goToOptions!.timeout = TIMEOUT_MS;

await page.setViewport({ width, height: 1080 });
},
Expand Down

0 comments on commit 984846e

Please sign in to comment.