From ac83743b4d27acb735d666dae03b9700c160aa07 Mon Sep 17 00:00:00 2001 From: TimV01 <29889196+TimV01@users.noreply.github.com> Date: Fri, 19 Oct 2018 20:07:46 +0200 Subject: [PATCH] Fixed Issue #551 I implemented the function so it won't shutdown the script when a dork gave 0 urls. @Ekultek Please take a look at this, might add it to your next release ;) FYI: I am interested in further contribution. --- var/search/selenium_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/search/selenium_search.py b/var/search/selenium_search.py index bca32b7..edfa25f 100644 --- a/var/search/selenium_search.py +++ b/var/search/selenium_search.py @@ -410,15 +410,15 @@ def parse_search_results(query, url_to_search, verbose=False, **kwargs): "provided query has a {} success rate".format(success_rate) )) else: - logger.fatal(set_color( + logger.warning(set_color( "did not find any URLs with given query '{}' writing query to blacklist".format(query), level=50 )) write_to_log_file(query, BLACKLIST_FILE_PATH, BLACKLIST_FILENAME, blacklist=True) - shutdown() + logger.info(set_color( "found a total of {} URLs with given query '{}'".format(len(true_retval), query) )) - return list(true_retval) if len(true_retval) != 0 else None + def search_multiple_pages(query, link_amount, verbose=False, **kwargs):