mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-03-13 12:38:16 +01:00
feat: add options for timeout
This commit is contained in:
parent
33fa371716
commit
2846a50983
@ -31,8 +31,8 @@ module.exports = class Scraper {
|
||||
this.proxy = config.proxy;
|
||||
this.keywords = config.keywords;
|
||||
|
||||
this.STANDARD_TIMEOUT = 10000;
|
||||
this.SOLVE_CAPTCHA_TIME = 45000;
|
||||
this.STANDARD_TIMEOUT = config.standard_timeout;
|
||||
this.SOLVE_CAPTCHA_TIME = config.solve_captcha_time;
|
||||
|
||||
this.results = {};
|
||||
this.result_rank = 1;
|
||||
|
@ -139,6 +139,8 @@ class ScrapeManager {
|
||||
//custom_func: resolve('examples/pluggable.js'),
|
||||
custom_func: null,
|
||||
throw_on_detection: false,
|
||||
standard_timeout: 10000,
|
||||
solve_captcha_time: 45000,
|
||||
// List of proxies to use ['socks5://78.94.172.42:1080', 'http://localhost:1080']
|
||||
proxies: null,
|
||||
// a file with one proxy per line. Example:
|
||||
|
Loading…
Reference in New Issue
Block a user