From e5d69628ea1c8c15d0fe2b2c5e665e5824ba55dd Mon Sep 17 00:00:00 2001 From: AbdoullahBougataya Date: Fri, 2 Aug 2024 19:00:43 +0000 Subject: [PATCH] Fri, Aug 2, 2024, 10:00 PM +03:00 --- images_scrapper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images_scrapper.py b/images_scrapper.py index dd01eb2..625da70 100644 --- a/images_scrapper.py +++ b/images_scrapper.py @@ -10,5 +10,7 @@ soup = BeautifulSoup(r.text, "html.parser") search_result = soup.find_all("a") for i in range(len(search_result)): - if "" -print(search_result) + if "https://en.wikipedia.org/wiki/" in str(search_result[i]): + the_link = search_result[i] + break +print(the_link)