Skip to content

Instantly share code, notes, and snippets.

@smartynko
Created January 27, 2017 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save smartynko/9033554f3e64e53466f4ac3702ab76ab to your computer and use it in GitHub Desktop.
Save smartynko/9033554f3e64e53466f4ac3702ab76ab to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
page = Nokogiri::HTML(open("http://v-tac.eu/led-lights/lights1/led-spotlights/led-spotlight-7w-gu10-smd-white-plastic-white-detail.html"))
puts page.class # => Nokogiri::HTML::Document
test = page.css("div#bd_results .productdetails .product-fields")[6].css("div.product-field")
puts test.text.strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment