Sha256: 2b46a20a3c41989c5cb4620e87f1176cd8669f97160c5f4f75381ece43e29cae
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
# Html2rss Request and convert an HTML document to an RSS feed via a config object. The config contains the URL to scrape and the selectors needed to extract the required information. This gem provides some extractors (e.g. extract the information from an HTML attribute). Please always check the website's Terms of Service before if its allowed to scrape their content! ## Installation Add this line to your application's Gemfile: ```ruby gem 'html2rss' ``` And then execute: $ bundle Or install it yourself as: $ gem install html2rss ## Usage example with a YAML file Create a YAML config file. Find an example at `rspec/config.test.yml`. `Html2rss.feed_from_yaml_config(File.join(['spec', 'config.test.yml']), 'nuxt-releases')` returns an `RSS:Rss` object. ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/gildesmarais/html2rss. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.0.1 | README.md |