Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Jan 7, 2025
1 parent b577a05 commit 5caa8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/google/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def google_search(
num_results: int = NUM_RESULTS_DEFAULT,
lang: str = "en",
):
urls = search_urls(query=query, num_results=num_results, lang=lang)
contents = []
urls: list[dict[str, str]] = search_urls(query=query, num_results=num_results, lang=lang)
contents: list[str] = []
for url in urls:
contents.append(scrape_content_from_url(url["url"]))
return contents

0 comments on commit 5caa8fb

Please sign in to comment.