parses the black list on multiple searches now as well, will prompt you or continue

This commit is contained in:
ekultek 2017-11-14 12:55:03 -06:00
parent 6f05a8e656
commit e1897912cc
2 changed files with 6 additions and 1 deletions

View file

@ -566,6 +566,7 @@ def search_multiple_pages(query, link_amount, verbose=False, **kwargs):
proxy = kwargs.get("proxy", None)
agent = kwargs.get("agent", None)
xforward = kwargs.get("xforward", False)
batch = kwargs.get("batch", False)
attrib, desc = "a", "href"
retval = set()
search_engine = AUTHORIZED_SEARCH_ENGINES["search-results"]
@ -574,6 +575,9 @@ def search_multiple_pages(query, link_amount, verbose=False, **kwargs):
"searching multiple pages will not be done on Google...".format(search_engine), level=30
))
if not parse_blacklist(query, BLACKLIST_FILE_PATH, batch=batch):
shutdown()
if not xforward:
params = {
"Connection": "close",

View file

@ -380,7 +380,8 @@ if __name__ == "__main__":
try:
search.search_multiple_pages(
dork_to_use, link_amount_to_search, proxy=proxy_to_use,
agent=agent_to_use, verbose=opt.runInVerbose, xforward=opt.forwardedForRandomIP
agent=agent_to_use, verbose=opt.runInVerbose,
xforward=opt.forwardedForRandomIP, batch=opt.runInBatch
)
except Exception as e:
if "Error 400" in str(e):