COSCUP2020
中階
RB105
歡迎來到 https://hackmd.io/@coscup/2020 共筆
請從這裡開始
簡報公開於:https://pttcodingman.github.io/
from PyPtt import PTT
ptt_bot = PTT.API()
ptt_bot.login(ptt_id, pw)
ptt_bot.logout()
ptt_bot = PTT.API(
host=PTT.data_type.host_type.PTT2)
ptt_bot = PTT.API(
connect_mode=
PTT.connect_core.connect_mode.TELNET)
ptt_bot = PTT.API(
connect_mode=PTT.connect_core.connect_mode.TELNET,
host=PTT.data_type.host_type.LOCALHOST,
port=8888)
ptt_bot.push(
board,
PTT.data_type.push_type.PUSH,
content,
post_index=index)
ptt_bot.post(
board,
title,
content,
1,
1)
index = ptt_bot.get_new_index (
PTT.data_type.index_type.BBS,
board=board_name)
index = ptt_bot.get_new_index (
PTT.data_type.index_type.BBS,
board,
search_type=
PTT data_type.post_search_type.KEYWORD,
search_condition='[公告]')
Q:有一些 App 發文是不計算 P 幣的,PyPtt 會計算 P 幣嗎?還是像其它 App 一樣是直接 0P 幣?聽眾
A:之前有其它開發者,號稱是用人類平均手打的速度送出的,但是他後來好像也被停權了。PyPtt 的作法是直接送出,所以就是 0P 幣。CodingMan
Q:想要貢獻有需要遵守的 policy 嗎?或是要 fork 出來自己改?聽眾
A:歡迎貢獻,如果有好的作法我會 merge 起來再作修改。CodingMan
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing