python之微信好友统计信息

发布时间:2019-05-16 21:35:08编辑:auto阅读(2102)

    需要安装库:wxpy

    代码如下:

    from wxpy import Bot,Tuling,embed,ensure_one
    
    bot = Bot(cache_path=True)
    
    #获取好友信息
    bot.chats()
    
    #获取好友的统计信息
    Friends = bot.friends()
    print(Friends.stats_text())

     

关键字