From 1f582f2bd757abb4bfd415a9ab69310f37cf93ba Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 8 Oct 2023 12:55:28 -0600 Subject: my changes --- autoAidModules/search_funcs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autoAidModules') diff --git a/autoAidModules/search_funcs.py b/autoAidModules/search_funcs.py index e69ed47..38c3c00 100644 --- a/autoAidModules/search_funcs.py +++ b/autoAidModules/search_funcs.py @@ -76,10 +76,10 @@ def search_on_forum(forum, query, max_results: int = 5): "google_domain": "google.com", "api_key": os.environ.get("SERP_API_KEY", "demo") } - #search = GoogleSearch(params) - #results = search.get_dict() + search = GoogleSearch(params) + results = search.get_dict() - results = res # Debugging Data + #results = res # Debugging Data if results["search_metadata"]['status'] == "Success": data = [] for idx, result in enumerate(results["organic_results"]): -- cgit v1.2.3