Fix google command

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2024-04-04 14:05:28 +07:00 committed by GitHub
parent 4252696fec
commit dbf5ff7a1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,7 +313,7 @@ async def gsearch(_, message):
link = result.select_one(".yuRUbf a")["href"]
title = result.select_one(".DKV0Md").text
try:
snippet = result.select_one("#rso .lyLwlc").text
snippet = result.find(class_="kb0PBd cvP2Ce A9Y9g").get_text()
except:
snippet = "-"