Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.gitignore
Dockerfile
Gemfile
Gemfile.lock
LICENSE
README.md
crawl.rb
feeds.toml
generate.rb
preview.rb

README.md

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
You can’t perform that action at this time.