-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (33 loc) · 1.52 KB
/
.env.example
File metadata and controls
42 lines (33 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ULearning Question Exporter Configuration
# Optional: Cookie file path. If provided and file exists, values inside will override .env.
# - cookie.json is recommended (pure JSON)
# - cookie.jsonc is allowed (demo with comments)
COOKIE_FILE=cookie.json
# Optional: Practice URL. If provided, QT_ID/OC_ID/QT_TYPE can be parsed from it.
# Example:
# https://lms.dgut.edu.cn/utest/index.html?v=1765875491045#/questionTrain/practice/2674/134202/1
PRACTICE_URL=
# Required: Authorization token (from browser cookie "AUTHORIZATION" or "token")
AUTHORIZATION=your_authorization_token_here
# Required: User ID (from browser cookie "USERINFO" -> userId)
USER_ID=12345678
# Required: Question Training ID (from URL: #/questionTrain/practice/{QT_ID}/...)
QT_ID=2674
# Required: Online Course ID (from URL: #/questionTrain/practice/.../{ OC_ID}/...)
OC_ID=134202
# Optional: Question Training Type (default: 1)
QT_TYPE=1
# Optional: API Base URL (auto-detected by default)
# The system automatically detects the platform based on your cookies and practice URL:
# - If your cookies/practice URL contain "ulearning.cn" -> uses official platform
# - Otherwise -> defaults to DGUT platform (https://lms.dgut.edu.cn/utestapi)
#
# Available platforms:
# - DGUT: https://lms.dgut.edu.cn/utestapi (default)
# - Official: https://utestapi.ulearning.cn
#
# You can override auto-detection by explicitly setting BASE_URL:
# BASE_URL=https://lms.dgut.edu.cn/utestapi
# BASE_URL=https://utestapi.ulearning.cn
# Optional: Output directory (default: output)
OUTPUT_DIR=output