mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 10:21:19 +02:00
忘记改了什么
This commit is contained in:
parent
77d6fe931f
commit
b4d261a483
@ -1,6 +1,7 @@
|
|||||||
#coding: utf-8
|
#coding: utf-8
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import signal
|
||||||
import threading
|
import threading
|
||||||
import Queue
|
import Queue
|
||||||
import requests
|
import requests
|
||||||
@ -83,3 +84,4 @@ class Downloader(object):
|
|||||||
thread.join()
|
thread.join()
|
||||||
|
|
||||||
logger.log(15, u'🍺 All done, saved to \'%s\'!' % folder)
|
logger.log(15, u'🍺 All done, saved to \'%s\'!' % folder)
|
||||||
|
|
||||||
|
@ -14,7 +14,12 @@ def dojinshi_parser(id):
|
|||||||
dojinshi['id'] = id
|
dojinshi['id'] = id
|
||||||
url = '%s/%d/' % (DETAIL_URL, id)
|
url = '%s/%d/' % (DETAIL_URL, id)
|
||||||
|
|
||||||
|
try:
|
||||||
response = requests.get(url).content
|
response = requests.get(url).content
|
||||||
|
except Exception, e:
|
||||||
|
logger.critical('%s%s' % tuple(e.message))
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
html = BeautifulSoup(response)
|
html = BeautifulSoup(response)
|
||||||
dojinshi_info = html.find('div', attrs={'id': 'info'})
|
dojinshi_info = html.find('div', attrs={'id': 'info'})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user