This commit is contained in:
Nikolai Tschacher 2019-07-11 16:43:41 +02:00
parent dab25f9068
commit baaff5824e
2 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View File

@ -226,10 +226,12 @@ module.exports = class Scraper {
log(this.config, 2, this.last_response); log(this.config, 2, this.last_response);
} }
try { if (this.config.debug_level > 2) {
// Try to save a screenshot of the error try {
await this.page.screenshot({path: `debug_se_scraper_${this.config.search_engine_name}_${keyword}.png`}); // Try to save a screenshot of the error
} catch (e) { await this.page.screenshot({path: `debug_se_scraper_${this.config.search_engine_name}_${keyword}.png`});
} catch (e) {
}
} }
if (await this.detected() === true) { if (await this.detected() === true) {