https://github.com/li1553770945/icpcglobal-tools
icpc global tools
https://github.com/li1553770945/icpcglobal-tools
icpc icpc-competition
Last synced: 8 months ago
JSON representation
icpc global tools
- Host: GitHub
- URL: https://github.com/li1553770945/icpcglobal-tools
- Owner: li1553770945
- Created: 2023-10-02T06:33:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T17:35:24.000Z (over 1 year ago)
- Last Synced: 2024-10-17T00:48:16.676Z (over 1 year ago)
- Topics: icpc, icpc-competition
- Language: Python
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ICPC报名信息核对
在有excel报名表的情况下,与icpc.global信息进行核对。
## 准备数据
1. 新建config.yaml,内容:
```yaml
email:
sender_email: xx@xx.xx
password: xxxxxx
smtp_server: xxx
smtp_port: xxx
reply_to: xxxx
network:
http_proxy: xxx
https_proxy: xxx
```
2. 新建一个token.txt,填入icpc.global中具有管理权限的token,保存到data文件夹。
3. 修改data/constant.py中的变量,根据变量名就能知道什么意思,需要注意的是,前面的一些变量修改后就不用动了,后面有一些要根据需要每次运行前修改。
## 运行
修改main.py中的check_id。相同check_id的情况下,不会对同一个人重复发送电子邮件。例如,运行过程中程序挂掉了,此时只要不改check_id,重新运行不会给之前信息有误的且发送过邮件的队伍再次发送。
如果改了check_id,则在遇到信息有误的队伍会重新发送邮件。