diff --git a/src/modules/se_scraper.js b/src/modules/se_scraper.js index 3a453ac..6d270c8 100644 --- a/src/modules/se_scraper.js +++ b/src/modules/se_scraper.js @@ -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; diff --git a/src/node_scraper.js b/src/node_scraper.js index 2dec432..fa2fe01 100644 --- a/src/node_scraper.js +++ b/src/node_scraper.js @@ -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: