@@ -24,7 +24,9 @@ from shutil import rmtree
|
||||
import requests
|
||||
from bs4 import BeautifulSoup as bs
|
||||
from PIL import Image
|
||||
from search_engine_parser import *
|
||||
from pyUltroid.functions.parser import GoogleSearch
|
||||
|
||||
from strings import get_string
|
||||
|
||||
from . import *
|
||||
|
||||
@@ -34,9 +36,9 @@ async def google(event):
|
||||
inp = event.pattern_match.group(1)
|
||||
if not inp:
|
||||
return await event.edit("`Give something to search..`")
|
||||
x = await eor(event, "`searching..`")
|
||||
x = await eor(event, get_string("com_2"))
|
||||
gs = GoogleSearch()
|
||||
res = await gs.async_search(f"{inp}")
|
||||
res = await gs.async_search(f"{inp}", cache=False)
|
||||
out = ""
|
||||
for i in range(len(res["links"])):
|
||||
text = res["titles"][i]
|
||||
|
||||
Reference in New Issue
Block a user