Replace Hpricot with Nokogiri

This commit is contained in:
Jaime Iniesta
2013-02-12 09:46:45 -05:00
parent 84a167725d
commit 6995e75d41
15 changed files with 36 additions and 34 deletions

View File

@ -9,7 +9,7 @@ module Oneboxer
page_html = open(@url).read
return nil if page_html.blank?
doc = Hpricot(page_html)
doc = Nokogiri::HTML(page_html)
# Flikrs oembed just stopped returning images for no reason. Let's use opengraph instead.
open_graph = Oneboxer.parse_open_graph(doc)