What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-29 23:17:02
how to find pdf file in link beautifulsoup
# Find links to pdf files in HTML with BeautifulSoup import urllib2 from bs4 import BeautifulSoup my_url = 'http://slav0nic.org.ua/static/books/python/' html=urllib2.urlopen(my_url).read() sopa = BeautifulSoup(html) current_link = '' for link in sopa.fin... Add solution