贴吧自动签到
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.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for tieba_sign-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7549919bd05cf80292a1e7a5f9ee2d5f193167ca9d51b04704fc672655c80629 |
|
MD5 | bbf3e65e564dc3895bda0657a307b193 |
|
BLAKE2b-256 | 4e2cc7adabaa6713b46c3f48bf2d7a08daef587601008d121aeb49feda40db7a |