take the warning of bs4 off

This commit is contained in:
Ricter Z 2016-08-11 22:32:34 +08:00
parent 40e880cf77
commit 35fec2e1f4

View File

@ -33,7 +33,7 @@ def doujinshi_parser(id_):
logger.critical(str(e)) logger.critical(str(e))
exit(1) exit(1)
html = BeautifulSoup(response) html = BeautifulSoup(response, 'html.parser')
doujinshi_info = html.find('div', attrs={'id': 'info'}) doujinshi_info = html.find('div', attrs={'id': 'info'})
title = doujinshi_info.find('h1').text title = doujinshi_info.find('h1').text