mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-06-20 17:47:49 +02:00
...
This commit is contained in:
parent
dab25f9068
commit
baaff5824e
Binary file not shown.
Before Width: | Height: | Size: 58 KiB |
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user