PTT自動推文 推文機器人(Python) For Linux and Windows
- Demo Video - Linux
- Demo Video - 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 '強制終止程式
- Ubuntu 12.04
- Python 2.7.3
MIT license