From fefc021cbc93567973e017257b2b293814740944 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 18 Feb 2023 12:11:00 +0100 Subject: [PATCH] add en language to search --- src/workers/CommandorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 16a7199..d657a30 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -95,7 +95,7 @@ class CommandorPage { }) try { const item = searchTexts[Math.floor(Math.random() * searchTexts.length)]; - await this.page.goto("https://www.google.com/search?q=" + item, {timeout: 90 * 1000}); + await this.page.goto("https://www.google.com/search?q=" + item+"&lr=lang_en", {timeout: 90 * 1000}); // await this.page.goto(RDV_URL, {timeout: 90 * 1000}); } catch (e) { log(e)