Skip to content

Commit a389547

Browse files
committed
Update Google plugin to fix result element selection in callback method
1 parent 68f5cdb commit a389547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/plugins/main/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Answer:
6565
async def callback(self, ctx: crescent.Context):
6666
await ctx.defer()
6767
soup = await request(params={"q": self.query})
68-
result = soup.find("div", class_="BNeawe s3v9rd AP7Wnd")
68+
result = soup.find("span", class_="qXLe6d FrIlee")
6969
await ctx.respond(result.text)
7070

7171

0 commit comments

Comments
 (0)