From 2b5fc965a6ebfe0803f72558078da515da08adb3 Mon Sep 17 00:00:00 2001 From: AbdoullahBougataya Date: Fri, 2 Aug 2024 19:28:09 +0000 Subject: [PATCH] Fri, Aug 2, 2024, 10:28 PM +03:00 --- images_scrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images_scrapper.py b/images_scrapper.py index 53e5c8b..e85df67 100644 --- a/images_scrapper.py +++ b/images_scrapper.py @@ -17,4 +17,4 @@ wikipedia_link = str(the_link.get('href')).removeprefix("/url?q=").split("&")[0] r = requests.get(wikipedia_link) soup = BeautifulSoup(r.text, "html.parser") - print(soup.find_all("img")[4]) + print(soup.find_all("img")[4].get("srcset"))