mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Update misc_tools.py
This commit is contained in:
parent
86be6421f5
commit
af74b68433
1 changed files with 1 additions and 4 deletions
|
|
@ -336,10 +336,7 @@ async def gsearch(_, message):
|
|||
for result in soup.select(".tF2Cxc"):
|
||||
link = result.select_one(".yuRUbf a")["href"]
|
||||
title = result.select_one(".DKV0Md").text
|
||||
try:
|
||||
snippet = result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b").get_text()
|
||||
except:
|
||||
snippet = "-"
|
||||
snippet = result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b").get_text() if result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b") else "-"
|
||||
|
||||
# appending data to an array
|
||||
data.append(
|
||||
|
|
|
|||
Loading…
Reference in a new issue