From d9f24052fcb7342558ac96375edb72fe707f36cb Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Sun, 31 Jan 2016 06:57:04 +0100 Subject: [PATCH] Update bs4 code; removes warning --- pubs/apis.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pubs/apis.py b/pubs/apis.py index cb1046f..8c95126 100644 --- a/pubs/apis.py +++ b/pubs/apis.py @@ -17,8 +17,7 @@ def isbn2bibtex(isbn): url = 'http://www.ottobib.com/isbn/{}/bibtex'.format(isbn) r = requests.get(url) - soup = BeautifulSoup(r.text) + soup = BeautifulSoup(r.text, "html.parser") citation = soup.find("textarea").text return citation -