listmonk 部署
安装 官方教程 进行即可,大致如下:
# Download the compose file to the current directory.
curl -LO https://github.com/knadh/listmonk/raw/master/docker-compose.yml
# Run the services in the background.
docker compose up -d
rss to mail 脚本
主程序 main.py
CodeBlock Loading...
依赖 requirements.txt
beautifulsoup4==4.12.3
feedparser==6.0.11
Requests==2.32.3
为方便使用的 Makefile
all: broadcast
broadcast: venv
venv/bin/python3 main.py
venv:
python3 -m venv venv
venv/bin/pip3 install -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
定时触发脚本,定时运行即可,修改为自己的内容。
export RSS_URL=https://xxx.com/feed/
export LISTMONK_API_URL=https://listmonk.xxx.com/api/campaigns
export LISTMONK_TOKEN=apiusername:api-token
export LISTMONK_SEND_LIST_ID=3
cd /mnt/data/script/listmonk_RSS_to_mail && make
效果展示

邮件效果展示
欢迎订阅:https://frytea.com/subscribe.html