Commit cfa274ea authored by 段英荣's avatar 段英荣

增加异常打印

parent 6910aaee
......@@ -31,7 +31,7 @@ from urllib.request import urlretrieve
import os
import cv2
import copy
import traceback
......@@ -301,6 +301,7 @@ class ZhihuAccount(object):
zhihu_spider_fd.write(json.dumps(item_dict) + "\n")
except:
print(traceback.format_exc())
print(str(data_item))
time.sleep(2)
......
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