Update web_scraper.py
Some checks failed
Notify on Telegram / notify (push) Has been cancelled

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-10-26 12:00:47 +07:00 committed by GitHub
parent 55fb0a75bf
commit 0775879d10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)}")