2 关于配置
萌狼蓝天 edited this page 2024-07-22 14:14:31 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

在运行程序之前,您应该检查配置文件 config.ini

接下来,我会为您介绍这些配置项,编辑配置文件的时候,注意等号左右两边是有一个空格的。

[base]
account = 您的账号
password = 您的密码


driver = 浏览器驱动,暂只支持 firefox  edge  chrome默认 建议使用chrome

driver_path_edge = 【driver = edge的时候才生效】这是你下载的Edge浏览器驱动位置 你可以用绝对位置的写法,也可以用相对位置的写法,只要路径正确就行)

driver_path_chrome = 【driver = chrome的时候才生效】这是你下载的Chrome浏览器驱动位置 你可以用绝对位置的写法,也可以用相对位置的写法,只要路径正确就行)

# 间隔时间 单位秒 就是每隔多少秒检查一次数据
interval = 10

[web]

key = 这是分配给您的密钥,没有这个密钥您将查看不到结果

[WebSocket]
host= 查看结果的服务器地址
port= 查看结果的服务器端口号
WEBSOCKET_URL = 通讯协议://查看结果的服务器地址:查看结果的服务器端口号

示例:

[base]
url_base = https://aeolus.ele.me
url_login = https://mozi-login.alibaba-inc.com/?APP_NAME=LPD_TEAM_AEOLUS&BACK_URL=
url_home = https://aeolus.ele.me/dashboard
url_work = https://r.ele.me/pikipek/schedule.html?platform=fs&subType=team#/group/schedule/work-check?teamId=17407820
account = 123456
password =123456
# 浏览器驱动,暂只支持 firefox  edge  chrome默认
driver = chrome
driver_path_edge = ./edgedriver_win64/msedgedriver.exe
driver_path_chrome = chromedriver-win64/chromedriver.exe
# 间隔时间 单位秒 就是每隔多少秒检查一次数据
interval = 10

[web]
host = 0.0.0.0
port = 8868
debug = True
key = ABCDEFG

[WebSocket]
host=8.137.118.148
port=8868
WEBSOCKET_URL = ws://8.137.118.148:8868