Skip to content

微信公众号搜索,基于搜狗,python实现,代码就几十行

Notifications You must be signed in to change notification settings

lshxiao/wechat_spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

一、使用方法

# 1、安装
pip install wechat_spider

# 2、引用
from wechat_spider import *
wx = wechats()

# 3、调用
wechat_infos, pager = wx.search_subscription(keywords, p)

二、返回参数说明

wechat_infos

name: 公众号名称, 
link: 公众号详情页链接, 
logo: 公众号logo, 
wx_id: 微信ID, 
wx_key: 公众号key, 获取评论数时会用到, 
company: 认证公司, 没有时返回空, 
time: 最近发文时间/毫秒, 
post_count: 月发文数, 
post_total: 总发文数

pager

total: 总条数(当总页数大于10页时,搜狗就没办法再翻页了,用的时候要注意),
page: 当前页,
per_page: 10, 固定值
如果使用过程有问题, 请联系我
author: lshxiao
wechat: mianhuabingbei
blog: http://web.pxuexiao.com

About

微信公众号搜索,基于搜狗,python实现,代码就几十行

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages