Rails 3 example application that uses Wiselinks
Ruby CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db Added AmazonParser for parsing pages from amazon.com Nov 23, 2012
doc
lib
log
public
script
test
vendor
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

AmazonParser

AmazonParser is a simple parser for retrieving information about products from amazon.com.

With the parser you can get the following fields:

  • Title

  • Brand

  • Rating

  • Price

  • Image Url

Creating a new parser:

Parsers::AmazonParser.new('http://www.amazon.com/gp/bestsellers/electronics/1266092011/ref=sv_e_1')

Parsing the chosen page:

Parsers::AmazonParser.new('http://www.amazon.com/gp/bestsellers/electronics/1266092011/ref=sv_e_1').parse