Giter Site home page Giter Site logo

pttautopush's Introduction

PttAutoPush

PTT自動推文 推文機器人(Python) For Linux and Windows

特色

  • 推文機器人
  • 持續至特定看板對最新文章推文

使用方法

請將下列程式碼修改為自己的PTT ID 以及 Password

user = 'Your PTT ID'
password = 'Your PTT Password'
$ python PttAutoPush.py [版名] [內容] [標題數] [推文tag]

說明:

[版名] : 不分大小寫,EX. gossiping

[內容] : 推文內容

[標題數] : 對最新的[標題數]筆文章推文,不包含至底文

[推文tag] : 1 = 推文 or 2 = 噓文 or 3 = 註解

執行範例

$ python PttAutoPush.py gossiping 別再發文了,趕快出門**吧  10 1

該範例為在PTT gossiping(八卦)板 自動對最新的10篇文章推文(不包含至底文)

推文的內容為 別再發文了,趕快出門**吧 (推文內容不要有空白或特殊字元)

程式永遠不會停止

除非使用 任何軟體登入PTT,使程式執行錯誤 或 輸入Ctrl + C '強制終止程式

執行過程

alt tag

輸出結果

使用pcman觀看 alt tag

Environment

  • Ubuntu 12.04
  • Python 2.7.3

License

MIT license

pttautopush's People

Contributors

twtrubiks 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.