some website not provide rss feed for subscribe, so i write some script to generate rss in atom format, and publish they by github page.
the script is in master branch,
rss and atom in gh-pages branch.
first clone master then
git checkout -b gh-pages
,
you can start use these scripts.
just run script/update-feed.sh
then get all feed get update.
if want to add any new feed,
add the script to execute
in function run_all
in script/update-feed.sh
:
run_all() {
activity-ncku/update.sh
gamer/update-all.sh
# add your script there
}
the script in run all will be execute
in directory script/
,
so access the rss file in ../
.
the script is can be run by anacron, or by cron if your machine naver shutdown. this is easy anacrontab example:
1 3 update-feed /home/gholk/feed/script/update-feed.sh
or crontab:
# minute hour day-of-month month day-of-week command
# run every day
11 21 * * * /home/gholk/feed/script/update-feed.sh
remeber to change the path to the directory of feed
in script/update-feed.sh
.
there is a easy website frontend , also a list of all rss at http://gholk.github.io/feed/list.atom .