Skip to content

Commit ab2c54a

Browse files
committed
init
1 parent 631f7d3 commit ab2c54a

7 files changed

+56
-2
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
# ONote
2-
先占个坑
1+
# TeleNote
2+
3+
[![GitHub issues](https://img.shields.io/github/issues/ds19991999/TeleNote.svg)](https://github.com/ds19991999/TeleNote/issues)
4+
[![DUB](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/ds19991999/TeleNote/blob/master/LICENSE)
5+
[![GitHub release](https://img.shields.io/github/release/ds19991999/TeleNote.svg)](https://github.com/ds19991999/TeleNote/releases)
6+
[![Badge](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu/#/zh_CN)
7+
[![GitHub stars](https://img.shields.io/github/stars/ds19991999/TeleNote.svg?style=popout&label=Stars)](https://github.com/ds19991999/TeleNote/stargazers)
8+
[![GitHub forks](https://img.shields.io/github/forks/ds19991999/TeleNote.svg?style=popout&label=Fork)](https://github.com/ds19991999/TeleNote/fork)
9+
10+
[`telenote`](https://github.com/ds19991999/TeleNote) 使用 [`telegraph`](https://telegra.ph) 构建。[`telegraph`](https://telegra.ph) 官网无法编辑已发布的文章,并且没有提供账户管理,文章管理,于是该脚本应用诞生,通过使用唯一的 `access_token`创建文章,使用 `auth_url` 获取历史文章的编辑权限。目前,该应用还未正式开发,未来将构建客户端笔记应用,先留个坑吧 。。。
11+
12+
## 环境
13+
14+
15+
```shell
16+
git clone https://github.com/ds19991999/TeleNote.git
17+
python3 -m pip install requests[socks]==2.22.0
18+
```
19+
20+
## 配置
21+
22+
新建 `config.yaml` 文件,填写相关参数。
23+
24+
## 运行
25+
26+
`cmd` 直接运行即可,代理需要配置正确,否则会抛出 `requests.exceptions.ConnectionError` 异常。
27+
28+
![image-20191204195252105](assets/image-20191204195252105.png)
29+
30+
![image-20191204195327778](assets/image-20191204195327778.png)
31+
32+
![image-20191204195350787](assets/image-20191204195350787.png)
33+
34+
35+
36+
## License
37+
38+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>

assets/image-20191204195252105.png

8.72 KB
Loading

assets/image-20191204195327778.png

9.32 KB
Loading

assets/image-20191204195350787.png

6.29 KB
Loading

config.default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
proxy:
2+
ftp: ftp://127.0.0.1:1081
3+
http: socks5://127.0.0.1:1080
4+
https: socks5://127.0.0.1:1080
5+
telegraph:
6+
access_token: # 第一次运行脚本自动生成,之后不可再更改,否则将失去历史文章编辑权限
7+
author_name: anonymous
8+
author_url: https://t.me/baba2333
9+
short_name: anonymous

config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
proxy:
2+
ftp: ftp://127.0.0.1:1081
3+
http: socks5://127.0.0.1:1080
4+
https: socks5://127.0.0.1:1080
5+
telegraph:
6+
access_token: # 第一次运行脚本自动生成,之后不可再更改,否则将失去历史文章编辑权限
7+
author_name: anonymous
8+
author_url: https://t.me/baba2333
9+
short_name: anonymous

telenote.exe

6.02 MB
Binary file not shown.

0 commit comments

Comments
 (0)