class Textsnatcher::Snatch
Public Class Methods
exec(url, xpath)
click to toggle source
# File lib/textsnatcher/snatch.rb, line 7 def exec(url, xpath) html = Nokogiri::HTML.parse(open(url), nil, "UTF-8") html.xpath(xpath).text end