Browse Source

Merge branch 'release/0.1.0'

liuyuqi-dellpc 2 months ago
parent
commit
059300542e
7 changed files with 52 additions and 1 deletions
  1. 6 0
      .env.example
  2. 1 0
      .gitignore
  3. 8 1
      README.md
  4. 1 0
      crawl_yuque/__init__.py
  5. 21 0
      crawl_yuque/yuque.py
  6. 13 0
      main.py
  7. 2 0
      requirements.txt

+ 6 - 0
.env.example

@@ -0,0 +1,6 @@
+"token": "xx"
+"user_agent": "xx"
+"base_url": "https://api.yuque.com/api/v2"
+"data_path": "data"
+
+

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+*.pyc

+ 8 - 1
README.md

@@ -1,3 +1,10 @@
 # crawl_yuque
 
-语雀文档 一键导出 markdown
+语雀文档 一键导出 markdown
+
+## Reference
+
+目前有一些其他语言,如php,node 实现的采集工具,本项目实现的主要用途针对自己的项目,导出markk'down文件,方便多平台同步。
+
+
+

+ 1 - 0
crawl_yuque/__init__.py

@@ -0,0 +1 @@
+from .yuque import CrawlYuque

+ 21 - 0
crawl_yuque/yuque.py

@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2023/11/23 15:50:36
+@License :   Copyright © 2017-2022 liuyuqi. All Rights Reserved.
+@Desc    :   None
+'''
+import os,sys,re,requests
+
+class CrawlYuque(object):
+    
+    def __init__(self):
+        self.sess=requests.Session()
+    
+    def run(self):
+        pass
+    
+    def get_token(self):
+        pass
+    

+ 13 - 0
main.py

@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2023/11/23 15:50:11
+@License :   Copyright © 2017-2022 liuyuqi. All Rights Reserved.
+@Desc    :   enter point
+'''
+from crawl_yuque import CrawlYuque
+
+if __name__=='__main__':
+    yuque = CrawlYuque()
+    yuque.run()

+ 2 - 0
requirements.txt

@@ -0,0 +1,2 @@
+requests
+