Skip to content

Commit 445ea13

Browse files
bots: Migrate google search integration to new bs4 API.
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent 929e71e commit 445ea13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip_bots/zulip_bots/bots/google_search/google_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def google_search(keywords: str) -> List[Dict[str, str]]:
1818
# Gets all search URLs
1919
search = soup.find(id="search")
2020
assert isinstance(search, Tag)
21-
anchors = search.findAll("a")
21+
anchors = search.find_all("a")
2222
results = []
2323

2424
for a in anchors:

0 commit comments

Comments
 (0)