使用python玩微信—wechat_py

使用python玩微信

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-02-26 08:12:39
# @Author  : guanglinzhou (xdzgl812@163.com)

import os
import itchat
import matplotlib.pyplot as plt
from collections import Counter
from matplotlib.font_manager import FontManager, FontProperties

# 登录微信
itchat.auto_login(hotReload=True)
friends = itchat.get_friends(update=True)

# print(friends[0])
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Login successfully as 腾原

利用itchat.send()向某个UserName发送消息

itchat.send(u'https://zhuanlan.zhihu.com/p/26514576','filehelper')
<ItchatReturnValue: {'BaseResponse': {'Ret': 0, 'ErrMsg': '请求成功', 'RawMsg': '请求成功'}, 'MsgID': '1783539302
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值