mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-08-09 05:54:38 +02:00
added static bing test, added html cleaning when exporting html
This commit is contained in:
@ -9,17 +9,13 @@ module.exports = class Pluggable {
|
||||
'--disable-gpu',
|
||||
'--window-size=1920x1080',
|
||||
'--hide-scrollbars',
|
||||
'--user-agent=Chrome',
|
||||
'--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36',
|
||||
],
|
||||
userAgent = 'Chrome',
|
||||
headless = true,
|
||||
} = options;
|
||||
|
||||
this.chromeFlags = chromeFlags;
|
||||
this.userAgent = userAgent;
|
||||
this.headless = headless;
|
||||
|
||||
this.chromeFlags.push(this.userAgent);
|
||||
}
|
||||
|
||||
async close_browser() {
|
||||
|
Reference in New Issue
Block a user