mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fix inline google search
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
dbf5ff7a1f
commit
0db01eb099
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ async def inline_menu(self, inline_query: InlineQuery):
|
||||||
link = result.select_one(".yuRUbf a")["href"]
|
link = result.select_one(".yuRUbf a")["href"]
|
||||||
title = result.select_one(".DKV0Md").text
|
title = result.select_one(".DKV0Md").text
|
||||||
try:
|
try:
|
||||||
snippet = result.select_one("#rso .lyLwlc").text
|
snippet = result.find(class_="kb0PBd cvP2Ce A9Y9g").get_text()
|
||||||
except:
|
except:
|
||||||
snippet = "-"
|
snippet = "-"
|
||||||
message_text = f"<a href='{link}'>{html.escape(title)}</a>\n"
|
message_text = f"<a href='{link}'>{html.escape(title)}</a>\n"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue