added static bing test, added html cleaning when exporting html

This commit is contained in:
Nikolai Tschacher
2019-08-12 16:05:17 +02:00
parent 4c77aeba76
commit ca941cee45
77 changed files with 1046 additions and 24 deletions

View File

@ -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() {