Skip to content

微博评论爬取项目中 url 的 max_id_type 控制的是评论排序,0 则按热度排序,1则按时间排序 #1

@Yam0214

Description

@Yam0214

在 weibo_comment/spider.py 下,如果获取json数据失败则会把 max_id_type 设置为 1 继续爬取。我验证后发现,max_id_type更改为 1 后爬取到的是按照时间降序的评论内容。

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