Update misc_tools.py

This commit is contained in:
Yasir Aris M 2024-09-10 09:25:10 +07:00 committed by GitHub
parent 0e6d6b78d8
commit b07d41c098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -338,7 +338,7 @@ async def gsearch(self, message):
title = result.select_one(".DKV0Md").text title = result.select_one(".DKV0Md").text
if snippet := result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b"): if snippet := result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b"):
snippet = snippet.get_text() snippet = snippet.get_text()
elif snippet := result.find(class_="LEwnzc Sqrs4e"): elif snippet := result.find(class_="VwiC3b yXK7lf lVm3ye r025kc hJNv6b Hdw6tb"):
snippet = snippet.get_text() snippet = snippet.get_text()
else: else:
snippet = "-" snippet = "-"