From fd0b53ee365026f0cea50a8c0739aa9d1c998b22 Mon Sep 17 00:00:00 2001 From: Ricter Z Date: Thu, 11 Aug 2016 22:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nhentai/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhentai/parser.py b/nhentai/parser.py index b1667a5..02f9766 100644 --- a/nhentai/parser.py +++ b/nhentai/parser.py @@ -82,7 +82,7 @@ def search_parser(keyword, page): logger.warn('If you are in China, please configure the proxy to fu*k GFW.') exit(1) - html = BeautifulSoup(response) + html = BeautifulSoup(response, 'html.parser') doujinshi_search_result = html.find_all('div', attrs={'class': 'gallery'}) for doujinshi in doujinshi_search_result: doujinshi_container = doujinshi.find('div', attrs={'class': 'caption'})