https://github.com/twtrubiks/pttautopush
PTT自動推文 推文機器人(Python)
https://github.com/twtrubiks/pttautopush
auto bot ptt push python
Last synced: 8 months ago
JSON representation
PTT自動推文 推文機器人(Python)
- Host: GitHub
- URL: https://github.com/twtrubiks/pttautopush
- Owner: twtrubiks
- Created: 2016-03-06T11:25:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T11:35:54.000Z (over 9 years ago)
- Last Synced: 2025-03-28T19:53:40.356Z (8 months ago)
- Topics: auto, bot, ptt, push, python
- Language: Python
- Size: 11.7 KB
- Stars: 15
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PttAutoPush
PTT自動推文 推文機器人(Python) For Linux and Windows
* [Demo Video](https://www.youtube.com/watch?v=vyLUPSfCprc) - Linux
* [Demo Video](https://youtu.be/eRA4m2rRIDw) - 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 '強制終止程式
## 執行過程

## 輸出結果
使用pcman觀看

## Environment
* Ubuntu 12.04
* Python 2.7.3
## License
MIT license