Compare commits

..

2 commits

Author SHA1 Message Date
Abir Arafat Chawdhury
f31fd5f212
Merge 44f2781f8f into 0775879d10 2025-10-27 19:51:13 +08:00
Yasir Aris M
0775879d10
Update web_scraper.py
Some checks failed
Notify on Telegram / notify (push) Has been cancelled
Signed-off-by: Yasir Aris M <git@yasir.id>
2025-10-26 12:00:47 +07:00

View file

@ -122,9 +122,9 @@ async def getDatalk21(msg, kueri, CurrentPage, strings):
with contextlib.redirect_stdout(sys.stderr): with contextlib.redirect_stdout(sys.stderr):
try: try:
if kueri: if kueri:
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21?q={kueri}") lk21json = await fetch.get(f"{web['yasirapi']}/lk21?q={kueri}")
else: else:
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21") lk21json = await fetch.get(f"{web['yasirapi']}/lk21")
lk21json.raise_for_status() lk21json.raise_for_status()
except httpx.HTTPError as exc: except httpx.HTTPError as exc:
await msg.edit_msg( await msg.edit_msg(
@ -2295,3 +2295,4 @@ async def muviku_scrap(_, message, strings):
await message.reply(f"ERROR: {str(e)}") await message.reply(f"ERROR: {str(e)}")