Skip to content

探索其他可行的接口 #117

@jooooock

Description

@jooooock

wechatDownload 软件的行为可知,它可能采用了下面的流程来采集数据:

首先,根据任意文章url获取对应公众号的biz参数(我称之为fakeid),然后构造一个下面这样的链接:

https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=${fakeid}&scene=124#wechat_redirect

在微信客户端中打开,界面如下:

Image

在这个界面中,我们可以拦截到获取文章列表的接口,如下:

https://mp.weixin.qq.com/mp/profile_ext?action=getmsg&__biz=${fakeid}&f=json&offset=${offset}&count=${count}&is_ok=1&scene=124&uin=${uin}&key=${key}&pass_ticket=${pass_ticket}

其中,几个重要的参数比如uinkeypass_ticket等,我们可以通过wxdown-service获取(其实就是我们称为Credentials的东西)

该方法的优点是可以获取所有公众号数据,不用考虑公众号是否关闭了搜索功能。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions