ioffer
Description
Very basic parser for iOffer.com using Nibbler.
Features
- Parses iOffer search URLs
- Parses iOffer pages.
Examples
require 'ioffer'
require 'open-uri'
search = IOfferSearch.parse open("http://www.ioffer.com/si/saxphones")
search.results.each do |result|
puts result.title
puts result.url
end
result_url = search.results.first.url
page = IOfferPage.parse open(result_url)
puts page.seller_name
puts page.item_id
puts page.price
Install
$ gem install ioffer
Todo
- Add
#search
- Add tests
Copyright
Copyright (c) 2011 Ezekiel Templin
See LICENSE.txt for details.