P
Patrick L.
Hey guys,
I'm on the second iteration of an app I'm writing to scrape some data
from iStock and right now, I'm trying to force Mechanize to use
Nokogiri. I've gotten away with not having to for a while, but as I keep
adding to this app, it's inevitable.
This is what I thought worked (http://pastie.org/393471); namely, drop
the WWW::Mechanize.html_parser = Nokogiri::HTML inside the constructor.
But if I do that, it thinks all my Nokogiri functions don't exist (ie
it's still using hpricot).
Any clues?
I'm on the second iteration of an app I'm writing to scrape some data
from iStock and right now, I'm trying to force Mechanize to use
Nokogiri. I've gotten away with not having to for a while, but as I keep
adding to this app, it's inevitable.
This is what I thought worked (http://pastie.org/393471); namely, drop
the WWW::Mechanize.html_parser = Nokogiri::HTML inside the constructor.
But if I do that, it thinks all my Nokogiri functions don't exist (ie
it's still using hpricot).
Any clues?