Skip to main content

贴吧自动签到

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)

Uploaded Source

Built Distribution

tieba_sign-0.0.5-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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