这是利用webqq的协议和python的urllib2和requests库写的一个模拟登录webqq并收发消息 的程序.
自从上次wenqq改了hash算法后重新在new_webqq里实现了一遍,如果仍无法正常用, 请移步 https://github.com/atupal/cliqq/tree/dev
python2 ./new_qq/runqq.py
urllib2模拟登陆webqq接收发消息, 还有一个cli版本的在github上
这是利用webqq的协议和python的urllib2和requests库写的一个模拟登录webqq并收发消息 的程序.
自从上次wenqq改了hash算法后重新在new_webqq里实现了一遍,如果仍无法正常用, 请移步 https://github.com/atupal/cliqq/tree/dev
python2 ./new_qq/runqq.py
第一个异常:找不到cookie,难道我要用浏览器登录了webqq,然后手动把cookie保存到res目录下?
第二个错误:
0 !MZV \x00\x00\x00\x00\x5d\xbd\x9a\xd6', 'd8be18d719eef17257165684cffff0fe012a31b0155472b38d9a5a73e167c64a57b5e23d9554bdb584d8af2eece98f24
Traceback (most recent call last):
File "runqq.py", line 111, in
Q.run()
File "runqq.py", line 93, in run
self.qq.loginGet()
File "/home/guang/webqq-master/new_qq/login_qq.py", line 114, in loginGet
+'&h=1'
File "/home/guang/webqq-master/new_qq/encryption.py", line 26, in md5_2
pwd_2 = self.hex_md5hash(pwd_1 + self.hexchar2bin(verifyCode2))
File "/home/guang/webqq-master/new_qq/encryption.py", line 21, in hexchar2bin
uin_final += chr(int(i, 16))
ValueError: invalid literal for int() with base 16: "d6', 'd8be18d719eef17257165684cffff0fe012a31b0155472b38d9a5a73e167c64a57b5e23d9554bdb584d8af2eece98f24"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.