Skip to content

Instantly share code, notes, and snippets.

@mculp
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mculp/8770450 to your computer and use it in GitHub Desktop.
Save mculp/8770450 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'openssl'
require 'rubygems'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
doc = open('https://www.coinmarket.io/market/LEAFBTC').read
puts Nokogiri::HTML.parse(doc).css("#markethistory")[0].text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment