Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HiMyCocoo opened this issue Jun 23, 2024 · 0 comments
Open

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

HiMyCocoo opened this issue Jun 23, 2024 · 0 comments

Comments

@HiMyCocoo
Copy link

正在搜集第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 秒     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant