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 install Nokogiri on Mac OS Sierra 10.12

I'm having troubles installing Nokogiri (1.6.8.1) on Mac OS Sierra 10.12. I tried using brew install libxml2 libxslt and then referencing the …

ruby nokogiri
Nokogiri, open-uri, and Unicode Characters

I'm using Nokogiri and open-uri to grab the contents of the title tag on a webpage, but am having trouble …

ruby unicode screen-scraping nokogiri open-uri
Custom css with kaminari with bootstrap

I try to use paginate with kaminari. My project used bootsrap css, and the result is so ugly:) The html …

ruby-on-rails ruby twitter-bootstrap nokogiri
Error while installing Nokogiri (1.6.7) on El Capitan

One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails. ➜ my-project git:(master) …

ruby-on-rails ruby rvm nokogiri
Nokogiri/Xpath namespace query

I'm trying to pull out the dc:title element using an xpath. I can pull out the metadata using the …

ruby xml xpath nokogiri
extract single string from HTML using Ruby/Mechanize (and Nokogiri)

I am extracting data from a forum. My script based on is working fine. Now I need to extract date …

ruby parsing nokogiri information-extraction
How to get the page source with Mechanize/Nokogiri

I'm logged into a webpage/servlet using Mechanize. I have a page object: jobShortListPg = agent.get(addressOfPage) When I use: …

ruby nokogiri mechanize
How to get the content of an XML node using XPath and Nokogiri

I have code like this: @doc = Nokogiri::HTML(open(url) @doc.xpath(query).each do |html| puts html # how get …

ruby nokogiri nodes
How can I add a child to a node at a specific position?

I have a node which has two children: an HTML text and an HTML element. <h1 id="Installation-blahblah">…

xml ruby dom nokogiri
libxslt is missing while installing ruby gem nokogiri

I recognize that this is a duplicate question however all the other answers I've found related to this issue have …

ruby gem nokogiri gitlab libxslt