时隔一年之后cc98水贴程序计划再启动,
看看我和一年前的变化.
requests >= 2.3.0
support python 3.3+
compat with python 2.7+
simple use
from cc98 import CC98User
user = CC98User(your_username,your_passwd, ['2333', 'hhhhh'])
user.reply(cc98_url)
use file like object:
from cc98 import CC98User
with open('relpy_contents.txt')as f:
user = CC98User(your_username,your_passwd, f)
user.reply(cc98_url)
Those will random choose a content to post
You can also special assign a reply:
user.reply(cc98_url, 'your reply')
users stream reply:
user_stream_reply = user_flow(usernames,passwds,reply_contents)
user_stream_reply(url)
除了API,当cc98.py 作为主程序运行时,自动获得users_info 目录下的文件内容.
举例, 在users_info/usernames.txt
username1
username2
在url.txt添加相应的url
Enjoy!
- reply---------------->done
- user stream --------->done
- compat with python2 ------------>done
- main
- 登陆成功 ----------------->11-5
- 回复帖子成功 --------------> 11-5 , 17:11
- 兼容python2 --------------> 11-5 , 23:17
- 用户流回复 ----------------> 11-8