美文网首页
基于搜狗微信搜索的微信公众号爬虫接口

基于搜狗微信搜索的微信公众号爬虫接口

作者: David5262 | 来源:发表于2019-11-08 17:06 被阅读0次

    init.py

    import wechatsogou
    
    ws_ip = wechatsogou.WechatSogouAPI()
    ws_ip  = wechatsogou.WechatSogouAPI(captcha_break_time=3)
    ws_api = wechatsogou.WechatSogouAPI(
        proxy = {
            'http':'127.0.0.1:8888',
            'https':'127.0.0.1:8888',
        })
    

    wechat.py

    def weChat():
        ws_api = wechatsogou.WechatSogouAPI()
        information = ws_api.get_gzh_info(school)
        information = information.items()
        for key, value in information:
            print(key,':',value)
    if __name__ == '__main__':
        information = []
        school = input("请输入学校名称:")
        weChat()
    
    信息对应
    {
        'profile_url': '',  # 最近10条群发页链接
        'headimage': '',  # 头像
        'wechat_name': '',  # 名称
        'wechat_id': '',  # 微信id
        'post_perm': int,  # 最近一月群发数
        'view_perm': int,  # 最近一月阅读量
        'qrcode': '',  # 二维码
        'introduction': '',  # 简介
        'authentication': ''  # 认证
    }
    

    相关文章

      网友评论

          本文标题:基于搜狗微信搜索的微信公众号爬虫接口

          本文链接:https://www.haomeiwen.com/subject/xodwbctx.html