Fix snippet google

This commit is contained in:
Yasir Aris M 2024-09-10 09:11:55 +07:00 committed by GitHub
parent 1b4c365230
commit 86be6421f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -337,7 +337,7 @@ async def gsearch(_, message):
link = result.select_one(".yuRUbf a")["href"]
title = result.select_one(".DKV0Md").text
try:
snippet = result.find(class_="kb0PBd cvP2Ce A9Y9g").get_text()
snippet = result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b").get_text()
except:
snippet = "-"