Skip to content

运行没有gui的“WeiboSuperCommentScrapy”会报错 #6

@zjyzh

Description

@zjyzh

信息如下:

Traceback (most recent call last):
  File "WeiboSuperCommentScrapy.py", line 220, in login
    sever_data = self.pre_login()
  File "WeiboSuperCommentScrapy.py", line 186, in pre_login
    servertime = sever_data["servertime"]
KeyError: 'servertime'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "WeiboSuperCommentScrapy.py", line 399, in <module>
    WeiboLogin(username, password, cookie_path).login()
  File "WeiboSuperCommentScrapy.py", line 227, in login
    sever_data = self.pre_login()
  File "WeiboSuperCommentScrapy.py", line 186, in pre_login
    servertime = sever_data["servertime"]
KeyError: 'servertime'

感觉是因为微博换了登录方式导致的登录不进去....
另外如果能爬多条微博的评论那就最好了,建议可以加个文件读取什么的,可以爬取多条微博的全部评论

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions