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.
This commit is contained in:
TimV01 2018-10-19 20:07:46 +02:00 committed by GitHub
parent 910c3e434a
commit ac83743b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):