HUB
Sign inSign up
feeds logo

camphor/feeds

By camphor

•Updated over 5 years ago

Image
0

375

camphor/feeds repository overview

⁠Feeds

複数のRSS/Atomフィードを合成し,1つのJSONファイルにまとめる.

⁠How to generate json

⁠Create feeds.toml

feeds.toml の例:

[hoge1]
feed_url = "https://dawn.hateblo.jp/feed"

[hoge2]
feed_url = "https://dawn.hateblo.jp/rss"
⁠Build json
⁠Locally
$ bundle install --path vendor/bundle
$ cat feeds.toml | bundle exec ruby crawl.rb | bundle exec ruby generate.rb > dist/feeds.json
⁠With docker image⁠
$ docker run \
    -v $PWD/feeds.toml:/apps/feeds.toml:ro \
    -v $PWD/dist:/apps/dist \
    camphor/feeds:latest
Tag summary
Recent tags
Content type
Image
Digest
Size
105.9 MB
Last updated
over 5 years ago
docker pull camphor/feeds:latest