Giter Club home page Giter Club logo

baidu-tieba-auto-sign's Introduction

百度贴吧批量签到脚本

说明

这是一个可以模拟客户端对百度贴吧进行批量签到的Python脚本。

修改自idevcod的博文(对应Github仓库)。对代码进行了完全重构,并改为可以模拟客户端进行签到。

模拟客户端部分参考了Userscript上的Tieba Client脚本(链接已失效)。

  • 在Windows 8.1 与 Debian 上测试通过
  • 在脚本所在目录生成一个简单的日志 tieba_log.log

使用说明

  • 适用于Python 2.7环境
  • 通过浏览器抓包获取Cookie和BDUSS,获取BDUSS需要切换到 http://tieba.baidu.com/mo/ 注销并重新登陆
  • 把脚本中的Cookie和BDUSS换成自己的值,然后执行脚本
Cookie结构:BAIDU_WISE_UID= ***; BAIDUID= ***; Hm_lvt_*** ; Hm_lpvt_**; HOSUPPORT=*; HISTORY=***; BDUSS=***; PTOKEN=***; STOKEN=***; SAVEUSERID=***; USERNAMETYPE=*; UBI=****(这是我获取并验证可用的,可能有多余的)

如果是在搬瓦工(Bandwagonhost)之类的小内存VPS上运行,请使用 baidu-tieba-auto-sign_low_memory.py

已知问题

  • 由于字符编码问题,Windows上输出会出现乱码,不过不影响本身签到功能。 已修复
  • 为解决Windows上的乱码问题进行的修改导致在Linux/Debian上运行出现错误,正在试图加入系统环境判断,暂时可以使用baidu-tieba-auto-sign_linux.py 已修复
  • 在Linux上,如果关注贴吧数目过多,会出现“thread.error: can't start new thread”错误,会导致超出一定数目的贴吧没有签到,并且不生成日志 已修复

声明

本工具只用于研究和学习用途,不附带任何担保,请酌情使用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.