From 843e2fbdcdb0860fc9ce2a3e59ac28af41d418c9 Mon Sep 17 00:00:00 2001 From: OSINT-TECHNOLOGIES <77023667+OSINT-TECHNOLOGIES@users.noreply.github.com> Date: Fri, 14 Jun 2024 19:54:19 +0300 Subject: [PATCH] Update dorking_processor.py [added .xlsx report support] --- datagather_modules/dorking_processor.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/datagather_modules/dorking_processor.py b/datagather_modules/dorking_processor.py index 8a0b089..b10284e 100644 --- a/datagather_modules/dorking_processor.py +++ b/datagather_modules/dorking_processor.py @@ -58,3 +58,17 @@ def save_results_to_txt(folderpath, queries, pages=10): f.write("\n") print(Fore.GREEN + "Google Dorking results successfully saved in TXT file" + Style.RESET_ALL) return "File with gathered links was successfully created" + +def transfer_results_to_xlsx(queries, pages=10): + dorking_return_list = [] + for i, query in enumerate(queries, start=1): + dorking_return_list.append(f"QUERY #{i}: {query}\n") + results = solid_google_dorking(query, pages) + if not results: + dorking_return_list.append("NO RESULT FOUND\n") + else: + for result in results: + dorking_return_list.append(f"{result}\n") + dorking_return_list.append("\n") + print(Fore.GREEN + "Google Dorking results successfully saved in TXT file" + Style.RESET_ALL) + return "File with gathered links was successfully created", dorking_return_list