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

How to check during Nokogiri/Ruby parsing if element exists on page?

how can I check during parsing of an HTML page with Nokogiri (Ruby gem) if an element, in this case …

ruby parsing nokogiri
Parsing simple XML with Nokogiri

I have the following XML: <links> <item> <title>Title 1</title> <url&…

ruby-on-rails ruby xml xpath nokogiri
How to convert Nokogiri Document object into JSON

I have some parsed Nokogiri::XML::Document objects that I want to print as JSON. I can go the route …

ruby xml json nokogiri
Clicking link with JavaScript in Mechanize

I have this: <a class="top_level_active" href="javascript:Submit('menu_home')">Account Summary</a> …

ruby nokogiri mechanize-ruby
Strip style attributes with nokogiri

I'm scrapling an html page with nokogiri and i want to strip out all style attributes. How can I achieve …

html nokogiri sanitize
Find and replace HTML tags

I have the following HTML: <html> <body> <h1>Foo</h1> <p&…

html ruby string parsing nokogiri
unable to install nokogiri in ubuntu 12.04

I am trying to setup rails env on my new ubuntu machine. But I am facing trouble while install nokogiri …

ruby-on-rails ubuntu nokogiri
Using XPath on single node returns elements in all nodes

I am parsing an XML doc that looks something like this: <MyBook> <title>Favorite Poems</…

ruby xml parsing nokogiri
find first level children in nokogiri rails

I've faced with a problem how to find first level children from the current element ? For example i have html : &…

ruby nokogiri
Failure to install nokogiri libiconv is missing on Yosemite Mac OS X 10.10

Trying to install Nokogiri I’m getting the following error Maxims-MacBook-Air:ScrapingTheApple maximveksler$ gem install nokogiri Fetching: nokogiri-1.6.2.1.gem (100%) Building …

gem nokogiri osx-yosemite