Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
48 lines (40 loc) · 1.69 KB
/
Copy path.env.example
File metadata and controls
48 lines (40 loc) · 1.69 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
43
44
45
46
47
48
# Required. The course entry page shown in the browser.
COURSE_URL=https://moocs.unipus.cn/my/course/8021
# Browser: edge (default), chrome, chromium, or firefox.
BROWSER=edge
# Optional executable override, for example:
# BROWSER_EXECUTABLE=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
HEADLESS=false
SLOW_MO=0
# Keep login cookies and the same browser identity between runs.
USER_DATA_DIR=.browser-profile
# Each browser uses an isolated subdirectory under USER_DATA_DIR.
# BROWSER_PROFILE_DIR=.browser-profile/edge
# Automatic login. UNIPUS_USERNAME accepts a phone number, username, or email.
UNIPUS_USERNAME=
UNIPUS_PASSWORD=
AUTO_LOGIN=true
LOGIN_MODE=auto
# The form requires this agreement before submission.
ACCEPT_LOGIN_AGREEMENT=true
# Login and navigation timeouts.
LOGIN_WAIT_TIMEOUT_MS=900000
NAVIGATION_TIMEOUT_MS=60000
VIDEO_WAIT_TIMEOUT_MS=60000
POLL_INTERVAL_MS=3000
TASK_DISCOVERY_TIMEOUT_MS=20000
# Playback. Keep 1 by default so the platform sees ordinary playback.
PLAYBACK_RATE=1
MUTE_VIDEO=true
SKIP_COMPLETED=true
# A task is clicked only when the page identifies it as video content.
TASK_SELECTOR=a.title[href*="/task/"],a[href*="task"],a[href*="/courseware/"],a[href*="/lesson/"],a[data-task-id]
VIDEO_KEYWORDS=videoclass,video,视频,观看
EXCLUDE_KEYWORDS=zuoye,assignment,homework,exam,quiz,test,作业,测验,考试,讨论,问答
COMPLETED_KEYWORDS=iccheckcircleblack24px,completed,finished,已完成
# Safety fallback: set true only if every task in the course is a video.
ASSUME_ALL_TASKS_ARE_VIDEO=false
# Stop a single video after this many minutes. 0 disables the cap.
VIDEO_MAX_WATCH_MINUTES=240
# For selector testing: npm start -- --dry-run
KEEP_BROWSER_OPEN=false