Skip to content

Commit

Permalink
Merge pull request #1316 from john123951/main
Browse files Browse the repository at this point in the history
Fix issue with googlesearch
  • Loading branch information
ashpreetbedi authored Oct 24, 2024
2 parents ea1d170 + 0c94d07 commit 1e77a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/tools/googlesearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def google_search(self, query: str, max_results: int = 5, language: str = "en")
logger.debug(f"Searching Google [{language}] for: {query}")

# Perform Google search using the googlesearch-python package
results = list(search(query, num_results=max_results, lang=language, advanced=True))
results = list(search(query, num_results=max_results, lang=language, proxy=self.proxy, advanced=True))

# Collect the search results
res: List[Dict[str, str]] = []
Expand Down

0 comments on commit 1e77a99

Please sign in to comment.