Giter Site home page Giter Site logo

ptt-login-bot's Introduction

批踢踢登入機器人

release github docker

需搭配 cron 使用。注意長期在同一時間登入會被 ban 帳號

執行方式

請先準備 docker

docker run -it \
    hyperbola/ptt-login-bot:1 -u username -p password

以下 cron 會讓機器人在每日 08:10 ~ 08:59 之間隨機進行登入,這樣就不會被 ban。

0 0 * * * docker run hyperbola/ptt-login-bot:1 -u username -p password | at 08:$(( $RANDOM % 50 + 10 ))

參數

  • -u, --user 批踢踢帳號
  • -p, --pswd 批踢踢密碼
  • -P, --pswd-path 密碼檔案,優先於 --pswd

環境變數 USERNAME 優先於 --user;環境變數 PASSWORD 優先於 --pswd-path--pswd

Exit Code

Exit code 描述
0 登入成功。
87 密碼錯誤。
255 不明原因錯誤。

姊妹機器人

ptt-login-bot's People

Contributors

wdzeng avatar yc5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.