Skip to content

python半自动爬取微信公众号文章列表,需要注册微信公众号账户

License

Notifications You must be signed in to change notification settings

shaonianG/WxOfficialSpider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WxOfficialSpider

python半自动爬取微信公众号文章列表,需要注册微信公众号账户

其中fakeid,cookies和token需要手动登录微信公众平台获取

fakeid是固定的,cookies和token每次登出后都会改变,需要重新手动设置

token会失效,可以凭借cookies再次获取

安装faker-useragent

pip install fake-useragent

##获取参数教程

登录后台后,点击新的创作

image-20220412205528349

进入后点击超链接

image-20220412205647339

选择其他公众号

image-20220412205713902

搜索想要爬取的公众号(先不要点击),打开浏览器f12,network界面

image-20220412205750023

image-20220412205851182

点击公众号

然后network里面就会出现一个请求,翻到request header这里

image-20220412210043311

所需要的cookies在这里获取

image-20220412210116226

然后点击payload,token和fakeid在这里获取

image-20220412210211393

About

python半自动爬取微信公众号文章列表,需要注册微信公众号账户

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages