百度贴吧 自动签到
如何安装
pip install --user tieba-sign
使用说明
#查看帮助
$ python -m tieba -h
usage: -m [-h] [-i INTERVAL] [-v] [bduss]
百度贴吧批量签到
positional arguments:
bduss 贴吧bduss的cookie值
options:
-h, --help show this help message and exit
-i INTERVAL 签到间隔时间,批量签到避免弹验证码,默认5秒
-v 详细模式,显示更多运行信息
首先登录百度,然后打开浏览器调试工具(按F12),在网络,请求头找到cookie,然后拷贝BDUSS段的值过来。
python -m tieba "RsNlNwbUpKdGtj....aFZxcHJMQVZzM3BE"
2023-07-27 08:35:17,960 [tieba.sign] [INFO] 共关注了136个贴吧
2023-07-27 08:35:17,960 [tieba.sign] [INFO] 3d打印(2206871):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] 4k(463046):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] archlinux(1695944):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] arduino(2712373):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] blender(972857):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] cemu(21343135):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] centos(471894):已签
2023-07-27 08:35:17,960 [tieba.sign] [INFO] cheatengine(3338054):已签
...
2023-07-27 08:35:29,415 [tieba.sign] [INFO] 58个贴吧已签到,78个贴吧未签到
2023-07-27 08:35:29,475 [tieba.sign] [ERROR] 贴吧状态异常,ie=utf-8&kw=gta5
2023-07-27 08:35:29,715 [tieba] [INFO] 退出..
代码中使用
from tieba import Tieba
app=Tieba("RsNlNwbUpKdGtj....aFZxcHJMQVZzM3BE")
#查看签到状态
app.status()
# 单独签到
app.sign("python")
#批量签到
app.auto_sign()
Release files for tieba-sign 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tieba_sign-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / tieba_sign-0.8.0-py3-none-any.whl
| Download URL | tieba_sign-0.8.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9a07ceb599a72aa56f4be65b794b06a0e00797a10d2d6828ac2fa26bec6cec3
|
|
BLAKE2b-256 checksum How to use checksums |
1a373d1fad2e6bfcc9182759a8aebf3dd1d309212da0ccccba0497ab99ff6dfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|