答:****
'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'
为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。
答:github版
答:是
答:是
答:
答:
答:**** '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'