mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix google search snippet
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
f468909f3e
commit
5bf1c04a9a
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ async def gsearch(self, message):
|
|||
for result in soup.select(".tF2Cxc"):
|
||||
link = result.select_one(".yuRUbf a")["href"]
|
||||
title = result.select_one(".DKV0Md").text
|
||||
if snippet := result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b"):
|
||||
if snippet := result.find(class_="VwiC3b yXK7lf p4wth r025kc hJNv6b"):
|
||||
snippet = snippet.get_text()
|
||||
elif snippet := result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b Hdw6tb"):
|
||||
snippet = snippet.get_text()
|
||||
|
|
|
|||
Loading…
Reference in a new issue