README.md in html2rss-0.0.1 vs README.md in html2rss-0.1.0
- old
+ new
@@ -1,7 +1,9 @@
-# Html2rss
+![html2rss logo](https://github.com/gildesmarais/html2rss/raw/master/support/logo.png)
+# html2rss [![Build Status](https://travis-ci.org/gildesmarais/html2rss.svg?branch=master)](https://travis-ci.org/gildesmarais/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).
@@ -22,24 +24,41 @@
Or install it yourself as:
$ gem install html2rss
-## Usage example with a YAML file
+## Usage
-Create a YAML config file. Find an example at `rspec/config.test.yml`.
+## Usage with a YAML file
+Create a YAML config file. Find an example at [`rspec/config.test.yml`](https://github.com/gildesmarais/html2rss/blob/master/spec/config.test.yml).
+
`Html2rss.feed_from_yaml_config(File.join(['spec', 'config.test.yml']), 'nuxt-releases')` returns
an `RSS:Rss` object.
+## Usage in a web application
+
+Find a minimal Sintra app which exposes your feeds to HTTP endpoints here:
+[gildesmarais/html2rss-web](https://github.com/gildesmarais/html2rss-web)
+
+### Tips and tricks
+
+- Check that the channel url does not redirect to a mobile page
+- fiddling with [`curl`](https://github.com/curl/curl) and [`pup`](https://github.com/ericchiang/pup) to find the selectors seems quite efficient
+
## 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.
+
+## Changelog generation
+
+The `CHANGELOG.md` can be generated automatically.
+Install [git-changelog](https://www.npmjs.com/package/git-changelog) globally and run `git-changelog` afterwards.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).