Commit b852488d authored by 李小芳's avatar 李小芳

add

parent 6394ec7a
......@@ -95,7 +95,7 @@ class CrawlerMain(object):
page_obj = etree.HTML(requests_res.text)
return page_obj, url
else:
return None
return None,None
except ReadTimeout:
print('timeout')
return None, None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment