An open API service indexing awesome lists of open source software.

https://github.com/camphor-/feeds


https://github.com/camphor-/feeds

rss

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

## Feeds

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

## How to generate json

### Create feeds.toml

`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](https://hub.docker.com/r/camphor/feeds)
```
$ docker run \
-v $PWD/feeds.toml:/apps/feeds.toml:ro \
-v $PWD/dist:/apps/dist \
camphor/feeds:latest
```