WIP - Code refactoring

This commit is contained in:
AjaySi
2024-03-31 19:36:33 +05:30
parent bedd0ac422
commit 1833a85637
3 changed files with 9 additions and 9 deletions

View File

@@ -50,11 +50,8 @@ logger.add(
)
#from tenacity import retry, stop_after_attempt, wait_random_exponential
#@retry(wait=wait_random_exponential(min=1, max=60), stop=stop_after_attempt(6))
#FIXME: Accept language, country and time frame to search for.
from tenacity import retry, stop_after_attempt, wait_random_exponential
@retry(wait=wait_random_exponential(min=1, max=60), stop=stop_after_attempt(6))
def google_search(query):
"""
Perform a Google search for the given query.