From f1e3c53cb0c7c445c68fd4321af37a5e18dfd167 Mon Sep 17 00:00:00 2001 From: ekultek Date: Tue, 28 Nov 2017 10:18:07 -0600 Subject: [PATCH] patch for a connection refusing error (issue #177) where google will refuse your connection because you're sending to many requests to it, will sleep and try again --- var/search/selenium_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/search/selenium_search.py b/var/search/selenium_search.py index 98d9bd3..91d4104 100644 --- a/var/search/selenium_search.py +++ b/var/search/selenium_search.py @@ -370,7 +370,7 @@ def parse_search_results(query, url_to_search, verbose=False, **kwargs): req = requests.get(query_url, proxies=proxy_string, params=headers) except ConnectionError: logger.warning(set_color( - "target machine refused connection, delaying and trying again..." + "target machine refused connection, delaying and trying again...", level=30 )) time.sleep(3) req = requests.get(query_url, proxies=proxy_string, params=headers)