修改下面的user_id 和 password
然后填写学术报告的名称中的关键字即可
最好再添加一个通知url
version: '3.8'
services:
selenium-app:
image: registry.cn-hangzhou.aliyuncs.com/happen/buct_kukuze_glw_hrs:latest
environment:
TZ: 'Asia/Shanghai'
config_info_user_id: '2022210xxx'
config_info_user_password: 'password'
config_paper_name_keywords: '["榜样引航校友论坛系列第27与28场", "榜样引航校友论坛系列第29与30场"]'
config_system_bark_url: 'https://api.day.app/8WfiKM8ZJzpvYYRkHiXxxx' # app bark地址
volumes:
- ./docker_log:/app/log
bark
用来通知一些信息,可以不修改
苹果手机
苹果手机下载这个软件即可,然后填写这个地址
其他用户
可以自己写一个后台处理,例如:
config_system_bark_url 这个时候为:http://你电脑ip:8080/send
一定要填写电脑ip,因为容器中的localhost是容器中的
from flask import Flask
app = Flask(__name__)
@app.route('/send/<msg>')
def send_message(msg):
print("收到消息", msg)
return f'Message received: {msg}'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080, debug=True)