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

add

parent 6394ec7a
...@@ -95,7 +95,7 @@ class CrawlerMain(object): ...@@ -95,7 +95,7 @@ class CrawlerMain(object):
page_obj = etree.HTML(requests_res.text) page_obj = etree.HTML(requests_res.text)
return page_obj, url return page_obj, url
else: else:
return None return None,None
except ReadTimeout: except ReadTimeout:
print('timeout') print('timeout')
return None, None 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