Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/html2rss/html2rss-configs
π A growing collection of html2rss feed configs. Generate configs with the handy generator.
https://github.com/html2rss/html2rss-configs
configuration dynamic-parameters feed feed-configs html2rss html2rss-configs html2rss-web presets scraping
Last synced: about 2 months ago
JSON representation
π A growing collection of html2rss feed configs. Generate configs with the handy generator.
- Host: GitHub
- URL: https://github.com/html2rss/html2rss-configs
- Owner: html2rss
- License: mit
- Created: 2019-06-15T14:40:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T05:31:19.000Z (4 months ago)
- Last Synced: 2024-05-17T06:34:34.436Z (4 months ago)
- Topics: configuration, dynamic-parameters, feed, feed-configs, html2rss, html2rss-configs, html2rss-web, presets, scraping
- Language: Ruby
- Homepage: https://html2rss.github.io/configs/
- Size: 335 KB
- Stars: 20
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![html2rss logo](https://github.com/html2rss/html2rss/raw/master/support/logo.png)
# html2rss-configs
βοΈThis repository contains [`html2rss`](https://github.com/html2rss/html2rss) _feed configs_ for many websites.
πFind all _feed configs_ in the [`configs/` directory](https://github.com/html2rss/html2rss-configs/tree/master/lib/html2rss/configs).
βοΈA handy usage method is via [`html2rss-web`](https://github.com/html2rss/html2rss-web).
πͺ Contributions are more than welcome!
[Fork this repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo),
add your _feed config_ and
[create a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).## Adding a new feed config
There's a generator for that! π
1. Fork this repo and run `bundle install` (you need to have Ruby >= 3.1 installed).
2. Start the generator by typing: `bin/generator`
3. Build your feed config and answer 'y' in the last step to create the files.
4. Optionally, edit the created files. Read [`html2rss`'s README](https://github.com/html2rss/html2rss/blob/master/README.md) what is possible or browse [existing configs](https://github.com/html2rss/html2rss-configs/tree/master/lib/html2rss/configs) for inspiration.
4. To test, run:
`bundle exec html2rss feed lib/html2rss/configs/domainname.tld/whatever`## Using dynamic parameters in `channel` attributes
When you're using dynamic parameters, you have to provide the parameters to the spec, too:
```ruby
include_examples 'config.yml', 'domainname.tld/whatever.yml', id: 42
```CLI usage:
```
bundle exec html2rss feed lib/html2rss/configs/domainname.tld/whatever id=42
```## Programmatic usage
Add to your Gemfile:
```ruby
gem 'html2rss-configs', git: 'https://github.com/html2rss/html2rss-configs.git'
```Use it in your code:
```ruby
require 'html2rss/configs'config = Html2rss::Configs.find_by_name('domainname.tld/whatever')
```This will return the _feed config_.
## Usage with `html2rss-web`
If you're running [`html2rss-web`](https://github.com/html2rss/html2rss-web),
you have nothing more to do! π## Building on the CI
Modifying existing or adding new _feed configs_ will trigger the CI to fetch the feed
and check for the presence of feed items.See [.travis.yml -> script](https://github.com/html2rss/html2rss-configs/blob/master/.travis.yml) which commands execute during build.