weiboSpider icon indicating copy to clipboard operation
weiboSpider copied to clipboard

爬取大量微博内容如何解除限速

Open bareawayme opened this issue 1 year ago • 1 comments

为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。

  • 问:请您指明哪个版本运行出错(github版/PyPi版/全部)?

答:github版

  • 问:您使用的是否是最新的程序(是/否)?

答:是

  • 问:爬取任意用户都会运行出错吗(是/否)?

答:是

  • 问:若只有爬特定微博时才出错,能否提供出错微博的weibo_id或url(非必填)?

答:

  • 问:若您已提供出错微博的weibo_id或url,可忽略此内容,否则能否提供出错账号的user_id及您配置的since_date,方便我们定位出错微博(非必填)?

答:

  • 问:如果方便,请您描述出错详情,最好附上错误提示。

答:**************************************************************************************************** 'NoneType' object has no attribute 'xpath' Traceback (most recent call last): File "E:\weibo\weiboSpider-master\weibo_spider\parser\index_parser.py", line 49, in get_page_num if self.selector.xpath("//input[@name='mp']") == []: AttributeError: 'NoneType' object has no attribute 'xpath' unsupported operand type(s) for +: 'int' and 'NoneType'

bareawayme avatar Sep 24 '24 05:09 bareawayme

这个没办法,只能放慢速度。

dataabc avatar Sep 24 '24 09:09 dataabc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 02:04 stale[bot]

Closing as stale, please reopen if you'd like to work on this further.

stale[bot] avatar May 06 '25 05:05 stale[bot]