一、爬取微信好友信息,返回性别比例和所在地排行

 

# -*- coding: utf-8 -*-

#导入模块
from wxpy import *

#初始化微信机器人,以缓存模式登录
robot = Bot(cache_path=True)

#获取好友、群、公众号信息
robot.chats()

#获取好友的统计信息
Friends = robot.friends()
print(Friends.stats_text())

 

 

 

 

 


本文转载:CSDN博客