This commit is contained in:
yasirarism 2023-08-26 22:23:10 +07:00 committed by GitHub
parent 6ba7d7ed12
commit 6172729559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ LOGGER = getLogger()
@app.on_inline_query()
async def inline_menu(_, inline_query: InlineQuery):
async def inline_menu(self, inline_query: InlineQuery):
if inline_query.query.strip().lower().strip() == "":
aspymon_ver = (await shell_exec("pip freeze | grep async-pymongo"))[0]
buttons = InlineKeyboard(row_width=2)

View file

@ -200,10 +200,10 @@ async def gsearch(_, message):
query = message.text.split(" ", maxsplit=1)[1]
msg = await message.reply_text(f"**Googling** for `{query}` ...")
try:
html = await fetch.get(
gs = await fetch.get(
f"https://www.google.com/search?q={query}&gl=id&hl=id&num=17",
)
soup = BeautifulSoup(html.text, "lxml")
soup = BeautifulSoup(gs.text, "lxml")
# collect data
data = []