- Notifications
You must be signed in to change notification settings - Fork1
微信公众号搜索,基于搜狗,python实现,代码就几十行
NotificationsYou must be signed in to change notification settings
lshxiao/wechat_spider
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# 1、安装pipinstallwechat_spider# 2、引用fromwechat_spiderimport*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,固定值
三、pypi下载地址:https://pypi.python.org/pypi/wechatSpider
如果使用过程有问题,请联系我author:lshxiaowechat:mianhuabingbeiblog:http://web.pxuexiao.com