Salah posisi edit di scraper pahe

This commit is contained in:
yasirarism 2022-12-12 13:45:52 +07:00 committed by GitHub
parent 990d7c5e86
commit 030133c9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,8 +172,8 @@ async def melongmovie(_, message):
@capture_err
async def pahe_scrap(_, message):
judul = message.text.split(" ", maxsplit=1)[1] if len(message.command) > 1 else ""
r = await http.get(f"https://yasirapi.eu.org/pahe?q={judul}")
pesan = await message.reply("Please wait, scraping data..")
r = await http.get(f"https://yasirapi.eu.org/pahe?q={judul}")
res = r.json()
data = "".join(f"**{count}. {i['judul']}**\n{i['link']}\n\n" for count, i in enumerate(res["result"], start=1))
try: