中文 | English
RSS Spider is a repo aim to fetch and save data from known RSS source.(is NOT fetch data from normal website and generate RSS source)
The reasons of this repo are:
This repo is still working in progress, any suggestions, issues and pull requests are warmly welcomed.
It is highly recommended to use docker to run this project.
An example config.yml is as the following:
mongodb:
link: mongodb://localhost:27017
rsshub:
host: http://localhost:1200/
rss:
zhihu_hotlist:
link: https://rsshub.app/zhihu/hotlist
key_list:
- title
- link
- published
- author
- summary
rsshub_host
in the links of rss. If you have your own RSSHub, please use the IP address and the port of the RSSHub container, if you don't have your own RSSHub, please use https://rsshub.app/
. If you use docker link container, please use the RSSHub container name (e.g. rsshub_diygod) to replace localhostFor the time being, only mongoDB database is supported.
It's highly recommended to run your own RSSHub. On one hand, it can speed up the refresh rate, on the other hand, it can reduce the work load of the sever own by the RSSHub author.
You may deploy your own rsshub using the offical online document of RSSHub.
I use the following command to run rsshub in docker, I reduce the cache time, so that it can refresh more quickly.
docker run -d --name rsshub_diygod --restart=always -p 1200:1200 \
-e CACHE_EXPIRE=5 -e CACHE_CONTENT_EXPIRE=60 \
diygod/rsshub:latest
docker run -d -p 27017:27017 --name mongo_rss_spider --restart=always \
-v mongo_rss_spider_data_configdb:/data/configdb \
-v mongo_rss_spider_data_db:/data/db \
-v d:/docker_mount/mongo_rss_spider_backup:/mongo_backup \
mongo
Many thanks to the project RSSHub which is written by DIYgod