chore: increase goto timeout scrape 100s
This commit is contained in:
@@ -9,7 +9,7 @@ export async function convertPageToMarkdown(url: string): Promise<string> {
|
|||||||
const browser = await chromium.launch();
|
const browser = await chromium.launch();
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
await page.goto(url, { waitUntil: "networkidle" });
|
await page.goto(url, { waitUntil: "networkidle", timeout: 100000 });
|
||||||
|
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
const selectors = [
|
const selectors = [
|
||||||
@@ -64,7 +64,7 @@ export async function convertPageToHTML(url: string): Promise<string> {
|
|||||||
const browser = await chromium.launch();
|
const browser = await chromium.launch();
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
await page.goto(url, { waitUntil: "networkidle" });
|
await page.goto(url, { waitUntil: "networkidle", timeout: 100000 });
|
||||||
|
|
||||||
await page.addInitScript(() => {
|
await page.addInitScript(() => {
|
||||||
const selectors = [
|
const selectors = [
|
||||||
|
|||||||
Reference in New Issue
Block a user