Top "Nokogiri" questions

An HTML, XML, SAX and Reader parser for Ruby with the ability to search documents via XPath or CSS3 selectors… and much more

HTML-parser on Node.js

Is there something like Ruby's nokogiri on nodejs? I mean a user-friendly HTML-parser. I'd seen on Node.js modules page …

html parsing node.js nokogiri
Why does installing Nokogiri on Mac OS fail with libiconv is missing?

I've been trying to install Nokogiri on Mac OS 10.9.3 and whatever I try, the install fails in the end with …

ruby macos nokogiri libxml2 libiconv
How to access attributes using Nokogiri

I have a simple task of accessing the values of some attributes. This is a simple script that uses Nokogiri::…

ruby nokogiri builder
How do I use XPath in Nokogiri?

I have not found any documentation nor tutorial for that. Does anything like that exist? doc.xpath('//table/tbody[@…

ruby xpath nokogiri
'require': cannot load such file -- 'nokogiri\nokogiri' (LoadError) when running `rails server`

I'm running a clean install of Ruby 2.2.1 on Windows 8.1 with DevKit. After the installation I run: gem install rails rails …

ruby-on-rails ruby nokogiri
Error to install Nokogiri on OSX 10.9 Maverick?

I upgraded my OSX (Lion) to Mavericks and I can't install Nokogiri for my projects. I already install XCode 5.0.1, Command …

ruby macos nokogiri libxml2 osx-mavericks
Getting attribute's value in Nokogiri to extract link URLs

I have a document which look like this: <div id="block"> <a href="http://google.com">…

ruby-on-rails ruby nokogiri
nokogiri gem installation error

I know there are a lot of questions about this gem but no answer has worked for me. When I …

ruby-on-rails ruby macos rubygems nokogiri
Error installing nokogiri: Failed to build gem native extension & libiconv is missing (OSX)

I try to clone this repo and run bundle install. The bundle process failed and throw this error: ... Installing nokogiri 1.6.2.1 …

ruby-on-rails ruby nokogiri homebrew osx-yosemite
Convert a Nokogiri document to a Ruby Hash

Is there an easy way to convert a Nokogiri XML document to a Hash? Something like Rails' Hash.from_xml.

xml ruby hash nokogiri libxml-ruby