From 993246f485d2f4fedeec3afb3f80fbdeffa40fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Wed, 28 Jan 2026 18:03:38 +0100 Subject: [PATCH] ajout(main.py): ajout fonction soup --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 2cc1766..aae63ce 100644 --- a/main.py +++ b/main.py @@ -1,2 +1,7 @@ from bs4 import BeautifulSoup import requests as rq + +def getsoup(s: str) -> BeautifulSoup: + return BeautifulSoup(rq.get(s).text, 'html.parser') + +soup = getsoup("https://www.millesima.fr/") \ No newline at end of file