Git Product home page Git Product logo

Comments (2)

githubtaotao avatar githubtaotao commented on May 21, 2024 30

以第一个demo为例子 test_WechatInfo.py
第一步:去fiddler的官网下载 fiddler抓包软件(https://www.telerik.com/download/fiddler-everywhere)
第二步:配置你的fiddler。让其可以抓取https、筛选url(https://blog.csdn.net/qq_35704550/article/details/91048514)
第三步:登录PC微信客户端,通过微信客户端自带的浏览器打开任意一篇公众号的文章。(检查下设置->通用设置->"使用系统默认浏览器打开网页" ,这里如果勾上,就去掉。如果是用系统默认的浏览器打开公众号,比如chrome浏览器打开的文章,就没办法获取到token参数)
第四步:如果上述步骤都正确,应该可以在fiddler里看到这个url: **https://mp.weixin.qq.com/mp/getappmsgext**。
然后点开这个链接。fiddler右侧webForms选项里有appmsg_token 参数的值,点raw选项可以找到cookie参数的值。 将这两个值带入test_WechatInfo.py文件,就能抓取到数据。

from wechat_articles_spider.

ash3T avatar ash3T commented on May 21, 2024 9

以第一个demo为例子 test_WechatInfo.py 第一步:去fiddler的官网下载 fiddler抓包软件(https://www.telerik.com/download/fiddler-everywhere) 第二步:配置你的fiddler。让其可以抓取https、筛选url(https://blog.csdn.net/qq_35704550/article/details/91048514) 第三步:登录PC微信客户端,通过微信客户端自带的浏览器打开任意一篇公众号的文章。(检查下设置->通用设置->"使用系统默认浏览器打开网页" ,这里如果勾上,就去掉。如果是用系统默认的浏览器打开公众号,比如chrome浏览器打开的文章,就没办法获取到token参数) 第四步:如果上述步骤都正确,应该可以在fiddler里看到这个url: **https://mp.weixin.qq.com/mp/getappmsgext**。 然后点开这个链接。fiddler右侧webForms选项里有appmsg_token 参数的值,点raw选项可以找到cookie参数的值。 将这两个值带入test_WechatInfo.py文件,就能抓取到数据。

我试过之后,报错是:
import pandas as pd
ModuleNotFoundError: No module named 'pandas'

from wechat_articles_spider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.