Skip to content

Commit

Permalink
follow redirects <3
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi committed Oct 12, 2023
1 parent b0b11db commit c5b1b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cogs/restauration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c5b1b35

Please sign in to comment.