贴吧自动签到
Project description
百度贴吧自动签到
安装
pip install --user tieba-sign
使用说明
C:\Users\>tieba-sign -h
usage: tieba-sign [-h] [-c COOKIE] [-f FILE] [-t TIME] [-d] [-v]
optional arguments:
-h, --help show this help message and exit
-c COOKIE, --cookie COOKIE
Cookies
-f FILE, --file FILE cookies file
-t TIME, --time TIME sleep time
-d, --dump dump list to file
-v verbose mode
首先登录百度,然后打开浏览器调试工具(按F12),在网络,请求头找到cookie,然后拷贝过来。
C:\Users\>tieba-sign -c "Cookie:hUb3NkcVBMfk1NV1Y3bGtjdHBnNzVFYktRbjBCVmVvWS03YzZ"
代码中使用
from tieba import Tieba
tieba=Tieba("Your Cookie")
tieba.get_bars()
tieba.batch_sign(1)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tieba-sign-0.0.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for tieba_sign-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8378a8c96e4d13dbce1832f94748444e321330277c1ad2a3cebea5a40421580e |
|
MD5 | d21f2ff3b0526dd2dc10a867b192dc7c |
|
BLAKE2b-256 | 11fd6773729a6f91e0e959a85985b67e643e03b389cff845a80cfbaef069c59d |