diff --git a/tools/googles.py b/tools/googles.py index 7c10871..8899a4f 100644 --- a/tools/googles.py +++ b/tools/googles.py @@ -18,6 +18,8 @@ async def google_search(content: str) -> Dict[str, str]: if p.parent.has_attr('href'): result[p.text] = p.parent.attrs.get('href') logger.info(f"Google | Searching | {result[p.text]}") + if len(result) > 10: + break return result resp.raise_for_status()