1. 首页
  2. 数据库
  3. 其它
  4. 使用python检测手机QQ在线状态的脚本代码

使用python检测手机QQ在线状态的脚本代码

上传者: 2021-01-16 03:44:41上传 PDF文件 30.73KB 热度 10次
复制代码 代码如下:import time,datetime import urllib2 def chk_qq(qqnum): chkurl = ‘http://wpa.qq.com/pa?p=1:’+`qqnum`+’:1′ a = urllib2.urlopen(chkurl) length=a.headers.get(“content-length”) a.close() print datetime.datetime.now() if length==’2329′: return ‘O
下载地址
用户评论