Ultroid - v0.0.4

ChangeLog - https://t.me/TheUltroid/26
This commit is contained in:
Aditya
2021-03-13 17:26:44 +05:30
committed by GitHub
parent a104e40539
commit cb317c5a72
56 changed files with 2800 additions and 631 deletions

View File

@@ -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]