Update bs4 code; removes warning

main
Fabien Benureau 9 years ago
parent 22c7acde99
commit d9f24052fc

@ -17,8 +17,7 @@ def isbn2bibtex(isbn):
url = 'http://www.ottobib.com/isbn/{}/bibtex'.format(isbn) url = 'http://www.ottobib.com/isbn/{}/bibtex'.format(isbn)
r = requests.get(url) r = requests.get(url)
soup = BeautifulSoup(r.text) soup = BeautifulSoup(r.text, "html.parser")
citation = soup.find("textarea").text citation = soup.find("textarea").text
return citation return citation

Loading…
Cancel
Save