Skip to main content

贴吧自动签到

Project description

百度贴吧 自动签到

如何安装

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tieba_sign-0.8.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file tieba_sign-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: tieba_sign-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for tieba_sign-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a07ceb599a72aa56f4be65b794b06a0e00797a10d2d6828ac2fa26bec6cec3
MD5 859cccd8aacd035bc1e973a3a801f408
BLAKE2b-256 1a373d1fad2e6bfcc9182759a8aebf3dd1d309212da0ccccba0497ab99ff6dfa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page