# Weneedfeed [![](https://badge.fury.io/rb/weneedfeed.svg)](https://rubygems.org/gems/weneedfeed) [![](https://github.com/r7kamura/weneedfeed/workflows/test/badge.svg)](https://github.com/r7kamura/weneedfeed/actions?query=workflow%3Atest) Generate feeds from URL and selectors. ## Installation Add this line to your application's Gemfile: ```ruby gem 'weneedfeed' ``` And then execute: ```sh bundle install ``` Or install it yourself as: ```sh gem install weneedfeed ``` ## Schema You need to write a schema file named with `weneedfeed.yml` to use this gem. ### Example ```yaml pages: - id: example1 title: Example feed with CSS Selector url: http://example.com/1 item_selector: li item_description_selector: p:nth-child(3) item_link_selector: a item_time_selector: time item_title_selector: p:nth-child(2) - id: example2 title: Example feed with XPath url: http://example.com/2 item_selector: //li item_description_selector: .//p[3] item_link_selector: .//a item_time_selector: .//time item_title_selector: .//p[2] ``` ### `id` Feed ID. - required - Used for feed URL. ### `title` Feed title. - required - Used for RSS `