https://github.com/camphor-/feeds
https://github.com/camphor-/feeds
rss
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/camphor-/feeds
- Owner: camphor-
- License: mit
- Created: 2018-10-13T02:05:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-23T00:33:39.000Z (over 1 year ago)
- Last Synced: 2024-11-23T01:24:30.578Z (over 1 year ago)
- Topics: rss
- Language: Ruby
- Homepage: https://feeds.camph.net/public/feeds.json
- Size: 149 KB
- Stars: 5
- Watchers: 11
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```