python爬虫程序在没有警告的情况下停止

2024-06-12 06:22:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我的代码在这里: https://gist.github.com/3834860

运行一段时间后会失速,输出如下:

2012-10-05 00:42:31,932 - DEBUG - next_url ishttp://m.tianya.cn/bbs/list.jsp?item=free&p=4&n=2012-10-05 00:41:23.213&idwriter=0&key=0&chk=&vu=49368951554
2012-10-05 00:42:33,914 - DEBUG - ['2366245', '2800363', '2698574', '2797207', '2801356', '2212342', '2216658', '2799029', '2747949', '2801410', '2562954', '2800201', '2188615', '2801369', '2800497', '2800402', '2731162', '2801265', '2800437', '2799819']
2012-10-05 00:42:34,462 - DEBUG - next_url ishttp://m.tianya.cn/bbs/list.jsp?item=free&p=5&n=2012-10-05 00:41:23.213&idwriter=0&key=0&chk=&vu=49368954180

它只是暂停在那里,没有警告或错误,我不能调试它,因为它会暂停1小时后。你知道吗

我不知道怎么调试,谁能告诉我?你知道吗


Tags: keydebugfreeurlcnitemlistnext