From c5b1b352b09f4b3d68227f9797318f8164d096a5 Mon Sep 17 00:00:00 2001 From: "airo.pi_" <47398145+AiroPi@users.noreply.github.com> Date: Thu, 12 Oct 2023 11:44:33 +0200 Subject: [PATCH] follow redirects <3 --- src/cogs/restauration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/restauration.py b/src/cogs/restauration.py index 55c3007..b86b10f 100644 --- a/src/cogs/restauration.py +++ b/src/cogs/restauration.py @@ -71,7 +71,7 @@ async def get_imgs(self) -> tuple[tuple[str, ...], tuple[str, ...]]: A tuple with fr:MENUs, and a second tuple with fr:ALLERGENES. """ async with httpx.AsyncClient() as client: - result = await client.get("https://lycee-kleber.com.fr/restauration") + result = await client.get("https://lycee-kleber.com.fr/restauration", follow_redirects=True) page = result.text scrap = BeautifulSoup(page, "html.parser")