Sha256: 8341a43a15e9a49456a54c052abf47888dc8dd066f550829e33b074d4bd08ee8
Contents?: true
Size: 926 Bytes
Versions: 4
Compression:
Stored size: 926 Bytes
Contents
yasf ==== Yet Another Scraper Framework ## Installation Add this line to your application's Gemfile: gem 'yasf' And then execute: $ bundle Or install it yourself as: $ gem install yasf ## Usage row_scraper = Yasf.define do scrape "h1.title", :title => :text scrape "a.brand", :brand => :text, :brand_link => :href result :title, :brand, :brand_link end scraper = Yasf.define do scrape "table.companies tr.company", :'rows[]' => row_scraper result :rows end ###And using the scraper: url = "http://local.domain" results = scraper.extract_from(url) result = results.first puts result.title ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yasf-0.0.6 | README.md |
yasf-0.0.5 | README.md |
yasf-0.0.4 | README.md |
yasf-0.0.3 | README.md |