From e0448e7d88061a6ea22dbef9e0b928965c6ac511 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Fri, 2 May 2025 07:23:59 -0700 Subject: [PATCH] bots: migrate to new bs4 API Signed-off-by: Emmanuel Ferdman --- zulip_bots/zulip_bots/bots/google_search/google_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/google_search/google_search.py b/zulip_bots/zulip_bots/bots/google_search/google_search.py index e1fb5083a..4b45a8946 100644 --- a/zulip_bots/zulip_bots/bots/google_search/google_search.py +++ b/zulip_bots/zulip_bots/bots/google_search/google_search.py @@ -18,7 +18,7 @@ def google_search(keywords: str) -> List[Dict[str, str]]: # Gets all search URLs search = soup.find(id="search") assert isinstance(search, Tag) - anchors = search.findAll("a") + anchors = search.find_all("a") results = [] for a in anchors: