基于Python的QQ群签到
# -*- coding:utf-8 -*-import urllib
import urllib2
"""
作者 科学侧的妖怪贤者
python 2.7
"""
gc=['123456789',]#QQ群号 数组
bkn='534**63**'#在post数据包中的一个key 需手动填写
poi='poi??person of idiot?'
q=0
signQQUrl = "http://qiandao.qun.qq.com/cgi-bin/sign";
for q in range(0,len(gc)):
q+1
para = {
'gc':gc,
'is_sign':'0',
'bkn':bkn,
'poi':poi,
};
postData = urllib.urlencode(para);
req = urllib2.Request(signQQUrl, postData);
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.14) Gecko/20080404 (FoxPlus) Firefox/2.0.0.14')
req.add_header('Content-Type', 'application/x-www-form-urlencoded');
req.add_header('Cache-Control', 'no-cache');
req.add_header('Accept', '*/*');
req.add_header('Connection', 'Keep-Alive');
req.add_header('Cookie', 'mark');
#cookie需在http://qiandao.qun.qq.com/执行document.cookie获得 或在抓包时顺带获得
resp = urllib2.urlopen(req);
respInfo = resp.info();
出自:http://bbs.xiankaba.org 卧槽 发出去了{:3321:}
页:
[1]