添加项目基础文件: - 新增依赖配置requirements.txt - 配置git忽略规则.gitignore - 添加示例配置文件config.example.ini - 实现核心主程序main.py,包含API请求、邮件发送和定时调度功能
24 lines
600 B
INI
24 lines
600 B
INI
[smtp]
|
||
# SMTP 服务器地址
|
||
host = smtp.qq.com
|
||
# SMTP 端口(SSL 通常为 465,STARTTLS 通常为 587)
|
||
port = 465
|
||
# 是否使用 SSL
|
||
use_ssl = true
|
||
# 发件人邮箱
|
||
sender = your_email@qq.com
|
||
# 发件人邮箱密码或授权码
|
||
password = your_authorization_code
|
||
# 收件人邮箱(多个用逗号分隔)
|
||
recipients = recipient1@example.com, recipient2@example.com
|
||
|
||
[api]
|
||
# API 地址
|
||
url = https://rocom-api.ovofish.com/api/shop
|
||
# API Key
|
||
key = sk-f2141ba4be3a9832106d2dc4042454666e354414d3ed0ce9
|
||
|
||
[schedule]
|
||
# 是否在每个时段开始时自动推送(true/false)
|
||
auto_push = true
|