Skip to content

Commit

Permalink
Fri, Aug 2, 2024, 10:00 PM +03:00
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdoullahBougataya committed Aug 2, 2024
1 parent 5170779 commit e5d6962
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions images_scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e5d6962

Please sign in to comment.