Code Monkey home page Code Monkey logo

tb-sign-ci's Introduction

贴吧签到机 - CI 版

  • 由百度非著名用户飞龙开发,开放给全部吧友进行使用。
  • 无缝对接 Travis CI,全自动全天候无人值守,智能监控,拒绝漏签。
  • 模拟客户端签到,首签+6,连续+8。
  • 永久开源,协议宽松。

用法

命令行

pip install -r requirement.txt
echo "你的 BDUSS" > cookie
python main.py

Travis CI

1)fork 这个项目

2)更新.travis.ymlenv.global部分。

  • GH_UN:你的 Github 用户名(用于提交)
  • GH_EMAIL:你的 Github 邮箱(用于提交)
  • GH_USER:仓库所在的用户
  • GH_REPO:仓库名称
  • GH_BRANCH:要提交的分支

3)访问travis-ci.org/{用户名}/{仓库},开启 CI。

4)在环境变量中设置BDUSS,格式为BDUSS=.{192},获取方法见下一节。

5)设置 CRON。

获取Cookie(Chrome)

  1. 首先在百度贴吧页面上登录你的账号。
  2. 地址栏中输入chrome://settings/cookies
  3. 弹出的窗口右上角文本框中输入tieba.com
  4. 找到网站为tieba.com的项目,点击,再找到BDUSS标签,点击。
  5. 内容处就是需要的字符串,连同BDUSS=一起输入到页面上的文本框中。

cookie

维护

由于百度贴吧可能频繁升级其接口,本程序的贴吧操作部分,即tbops.py中的所有贴吧操作函数均已添加文档字符串,有一定 Python 基础的用户可自行修改。

但事实证明,从我开始玩贴吧的 2012 年到现在,这些接口从来没有失效。

反馈

任何反馈请提交到 ISSUE。

tb-sign-ci's People

Contributors

wizardforcel avatar

Stargazers

LambdaX avatar lihui avatar  avatar

Watchers

James Cloos avatar  avatar

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.