Nokogiri Doc Element Not Returning Correctly

Posted by TenJack on Stack Overflow See other posts from Stack Overflow or by TenJack
Published on 2010-04-18T23:30:54Z Indexed on 2010/04/18 23:33 UTC
Read the original article Hit count: 351

Filed under:
|

I am trying to scrape a wiktionary entry:

uri = URI.parse("http://en.wiktionary.org/wiki/" + CGI.escape('abjure'))
doc = Nokogiri::HTML(open(uri, 'User-Agent' => 'ruby'))

but the doc shows no elements for this word. The other words work fine and this word used to work. I have no idea what changed. Anyone see anything wrong with this?

© Stack Overflow or respective owner

Related posts about nokogiri

Related posts about scraping