f111fei / article_spider

微信公众号爬虫
317 stars 72 forks source link

mac微信客户端v2.3.10,appmsg_token字段取消? #3

Closed BiterrorChen closed 6 years ago

BiterrorChen commented 6 years ago

仅仅填了biz和cookie,输出的错误信息为: (node:64548) UnhandledPromiseRejectionWarning: Error: Error: {"ret":-3,"errmsg":"no session","cookie_count":1} at Step. (/Users/chenchao/article_spider/node_modules/step-pipe/out/index.js:31:27) at Generator.throw () at rejected (/Users/chenchao/article_spider/node_modules/step-pipe/out/index.js:5:65) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:64548) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:64548) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

f111fei commented 6 years ago

你可能是查看的 https://mp.weixin.qq.com/mp/profile_ext?action=home开头的请求,这个请求是没有appmsg_token的。

chrome里面network查看的请求需要是 https://mp.weixin.qq.com/mp/profile_ext?action=getmsg 开头的请求,在历史文章列表里面向下滚动的时候会出现这个请求。

BiterrorChen commented 6 years ago

真的谢谢了~解决了