Closed WuTianming closed 8 years ago
Fixed by reading the source code.
Traceback (most recent call last):
File "./QQgetMsg.py", line 26, in
难道没写完 是不是因为还在测试?
You must have imported the wrong class. Use:
from qqhttp import mHTTPClient_urllib
instead of:
from qqhttp import mHTTPClient
then
a = QQClient(HTTPClient=mHTTPClient_urllib)
mHTTPClient
is the base class, or framework, only contains abstract methods. mHTTPClient_urllib
is its implementation.
@eyeKill 我知道了 我用的是QQClient(HTTPClient=mHTTPClient)
,就这里出问题了,谢谢
On the other hand, I'm going to abandon qqhttp
and use requests
library instead.
I gotta say, it's like hell to maintain a http library for a small project.
RT.