Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed May 29, 2024
1 parent 23afd9f commit 1e013d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ app.get(
const page = await browser.newPage();
await page.setUserAgent(defaultUserAgent());
await page.goto(`https://www.sogou.com/web?query=${search}`, {
waitUntil: "load",
waitUntil: "networkidle0",
timeout: 30_000,
referer: "https://www.sogou.com/",
});
const results = await page.$(".results");
Expand Down

0 comments on commit 1e013d3

Please sign in to comment.