6dylan6 / auto_comment

带图评价
420 stars 75 forks source link

KeyboardInterrupt报错,不会继续执行 #60

Open HiMyCocoo opened 1 month ago

HiMyCocoo commented 1 month ago

正在搜集第1个商品第1页的评论信息 Traceback (most recent call last): File "/ql/data/scripts/6dylan6_auto_comment/jd_comment.py", line 742, in main(opts) File "/ql/data/scripts/6dylan6_auto_comment/jd_comment.py", line 576, in main N = sunbw(N, opts) ^^^^^^^^^^^^^^ File "/ql/data/scripts/6dylan6_auto_comment/jd_comment.py", line 302, in sunbw xing, Str = generation(oname, opts=opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/ql/data/scripts/6dylan6_auto_comment/jd_comment.py", line 140, in generation result = spider.getData(4, 3) # 这里可以自己改 ^^^^^^^^^^^^^^^^^^^^ File "/ql/data/scripts/6dylan6_auto_comment/jdspider.py", line 109, in getData time.sleep(random.randint(5, 10)) # 设置时延,防止被封IP ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt

执行结束... 2024-06-23 23:24:38 耗时 61 秒