A more elegant way to subscribe to WeChat public accounts.
.atom
. rss
. json
format) |
to implement the OR logic of multiple keywords{{ORIGIN_URL}}/feeds/all.atom?title_include=Zhang San
{{ORIGIN_URL}}/feeds/MP_WXS_123.json?limit=30&title_include=Zhang San|Li Si|Wang Wu&title_exclude=Zhang Sanfeng|Zhao Liu
{{ORIGIN_URL}}/feeds/MP_WXS_123.rss?update=true
You can deploy it with one click through the following platforms, just fill in the URL of this project.
Railway
Hugging Face Deployment Reference
Please refer to docker-compose.yml and docker-compose.sqlite.yml
docker run -d
--name wewe-rss
-p 4000:4000
-e DATABASE_TYPE=sqlite
-e AUTH_CODE=123567
-v $( pwd ) /data:/app/data
cooderl/wewe-rss-sqlite:latest
docker network create wewe-rss
docker run -d
--name db
-e MYSQL_ROOT_PASSWORD=123456
-e TZ= ' Asia/Shanghai '
-e MYSQL_DATABASE= ' wewe-rss '
-v db_data:/var/lib/mysql
--network wewe-rss
mysql:8.3.0 --mysql-native-password=ON
docker run -d
--name wewe-rss
-p 4000:4000
-e DATABASE_URL= ' mysql://root:123456@db:3306/wewe-rss?schema=public&connect_timeout=30&pool_timeout=30&socket_timeout=30 '
-e AUTH_CODE=123567
--network wewe-rss
cooderl/wewe-rss:latest
Nginx configuration reference
If you want to deploy locally, please use pnpm install && pnpm run -r build && pnpm run start:server
command (you can use pm2 to daemonize the process to prevent it from being killed).
The detailed deployment steps are as follows, taking sqlite as an example:
# 需要提前声明环境变量,因为prisma会根据环境变量生成对应的数据库连接
export DATABASE_URL= " file:../data/wewe-rss.db "
export DATABASE_TYPE= " sqlite "
# 删除mysql相关文件,避免prisma生成mysql连接
rm -rf apps/server/prisma
mv apps/server/prisma-sqlite apps/server/prisma
# 生成prisma client
npx prisma generate --schema apps/server/prisma/schema.prisma
# 生成数据库表
npx prisma migrate deploy --schema apps/server/prisma/schema.prisma
# 构建并运行
pnpm run -r build
pnpm run start:server
DATABASE_URL
( required ) database address, such as mysql://root:[email protected]:3306/wewe-rss
.
DATABASE_TYPE
database type, sqlite
needs to be filled in when using sqlite
.
AUTH_CODE
server interface requests authorization code. If it is set to a null character or not set, it will not be enabled. ( /feeds
path is not required)
SERVER_ORIGIN_URL
server access address, used to generate the complete path of RSS (when accessed from the external network, set to the public IP or domain name address of the server).
MAX_REQUEST_PER_MINUTE
Maximum number of requests per minute, default 60.
FEED_MODE
output mode, optional value is fulltext
(RSS full-text mode will slow down the interface response and occupy more memory).
CRON_EXPRESSION
regularly updates the feed Cron expression, the default is 35 5,17 * * *
.
UPDATE_DELAY_TIME
continuously updates the delay time to reduce being locked in a dark room. The default is 60s
.
ENABLE_CLEAN_HTML
Whether to enable text html cleaning, the default is false
.
PLATFORM_URL
defaults to https://weread.111965.xyz
. If there are DNS resolution problems in China, you can use https://weread.965111.xyz
to speed up access .
Enter the wewe-rss-dingtalk directory and follow the instructions of README.md to deploy
Enter account management, click Add Account, and scan the WeChat QR code to log in to your WeChat Reading account.
Enter the public account source, click Add, and subscribe to the WeChat public account by submitting the WeChat public account sharing link. (If you add too frequently, you may be blocked. Please wait 24 hours to unblock.)
Today's dark room
The account is blocked and will be restored after one day. If the account is normal, you can clear the blackroom records by restarting the service/container.
Disable
Do not use this account
Invalid
The account login status is invalid and needs to be logged in again.
cp ./apps/web/.env.local.example ./apps/web/.env
and cp ./apps/server/.env.local.example ./apps/server/.env
pnpm install && pnpm dev
.http://localhost:5173
and the back end accesses http://localhost:4000
In order to ensure the long-lasting operation of this project, certain interface requests will be forwarded through weread.111965.xyz
. Please be assured that no data is saved by this forwarding service.
If you think the wewe-rss project is helpful to you, boss, you can give me a beer!
paypal.me/cooderl
MIT @cooderl