From f6c40276c1b49f109c553d90f8bda7fba8540a8f Mon Sep 17 00:00:00 2001 From: AvianJay Date: Thu, 25 Jan 2024 16:54:58 +0800 Subject: [PATCH] update --- HanlinQT/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/HanlinQT/README.md b/HanlinQT/README.md index e6e2832..ddad0fb 100644 --- a/HanlinQT/README.md +++ b/HanlinQT/README.md @@ -1,5 +1,24 @@ # 翰林任務中心-答案獲取器 獲取答案。 +# 範例用法 +
$>python hleexam.py --help
+usage: hleexam.py [-h] [-i ID] [-s SAVENAME] [-j JSON_PATH] [-g GENHTML]
+
+options:
+  -h, --help            show this help message and exit
+  -i ID, --id ID        題目的ID
+  -s SAVENAME, --savename SAVENAME
+                        保存的json檔案名稱
+  -j JSON_PATH, --json JSON_PATH
+                        taskMetadata的JSON路徑
+  -g GENHTML, --genhtml GENHTML
+                        生成HTML的檔案名稱
+
+$>python hleexam.py -i ******** -s chinese.json -g chinese.html
+得到任務ID: ************************_************************
+獲取到 50 個題目,共 0 個錯誤
+成功儲存題目到 chinese.json
+成功創建HTML到 chinese.html
# 獲取taskMetadata 1. 右鍵檢查進入DevTools