Skip to content

Instantly share code, notes, and snippets.

@isaldin
Last active August 29, 2015 14:14
Show Gist options
  • Save isaldin/785f0eff0b96578cfa5c to your computer and use it in GitHub Desktop.
Save isaldin/785f0eff0b96578cfa5c to your computer and use it in GitHub Desktop.
require 'wombat'
require 'json'
data = Wombat.crawl do
base_url "http://www.halykbank.kz/"
path "/"
rates "css=#home div.home-right div.rates table.rates-1 tr", :iterator do
rate "css=td", :list
end
end
print data["rates"][1..3].to_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment