chore: increase goto timeout scrape 100s

This commit is contained in:
Rohit Rajan
2025-11-20 18:59:32 +05:30
parent c89b2afed6
commit 0987183bac

View File

@@ -9,7 +9,7 @@ export async function convertPageToMarkdown(url: string): Promise<string> {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto(url, { waitUntil: "networkidle" });
await page.goto(url, { waitUntil: "networkidle", timeout: 100000 });
await page.addInitScript(() => {
const selectors = [
@@ -64,7 +64,7 @@ export async function convertPageToHTML(url: string): Promise<string> {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto(url, { waitUntil: "networkidle" });
await page.goto(url, { waitUntil: "networkidle", timeout: 100000 });
await page.addInitScript(() => {
const selectors = [