nokogiri Questions
3
I'm trying to install nokogiri on my machine but I am receiving the following error:
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to bui...
Winegrower asked 28/11, 2015 at 5:42
2
Solved
So I have this <a> tag in a xml file
<a href="/www.somethinggggg.com">Something 123</a>
My desired result is to use Nokogiri and completely remove its tag so it is no longer a ...
3
Solved
I'm implementing an exporter for XML data that requires namespaces. I'm using Nokogiri's XML Builder (version 1.4.0) to do this, however, I can't get Nokogiri to create a root node with a namespace...
Superficies asked 1/12, 2009 at 22:35
1
When installing Rails on El Capitan (Mac OS X 10.11.1) on Ruby v2.2.2, I got the following error:
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/jon/.rvm/...
Malek asked 18/11, 2015 at 3:24
4
Solved
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 new testapp
cd testapp
rails server
leaving everything else at default...
Surtout asked 12/3, 2015 at 0:24
3
Solved
I tried many URLs on this and they seem to be fine until I came across this particular one:
require 'rubygems'
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open("http://www.moxyst.c...
Creigh asked 5/9, 2014 at 18:42
4
I want to extract parts of an XML file and make a note that I extracted some part in that file, like "here something was extracted".
I'm trying to do this with Nokogiri, but it seems to not really...
1
Solved
Here is the code which i used for parsing of web page.I did it in rails console.But i am not getting any output in my rails console.The site which i want to scrape is having lazy loading
require '...
Lottie asked 11/9, 2015 at 9:4
3
Solved
I have a node which has two children: an HTML text and an HTML element.
<h1 id="Installation-blahblah">Installation on server<a href="#Installation-blah" class="wiki-anchor">&para;...
2
Solved
I am just trying to find out how to to a to_xml with a Nokogiri::XML::Document or a Nokogiri::XML::DocumentFragment.
Alternatively, I would like to use xPath on a Nokogiri::XML::DocumentFragment. ...
1
I am trying to parse an HTTPS XML feed via Nokogiri but I get this OpenSSL error:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSL...
Garrard asked 9/7, 2014 at 11:39
4
Solved
While bundle:install phase after deploy:finalize_update,i'm getting an error about nokogiri. It suggests ,
** [out :: *******] Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bun...
Grosvenor asked 20/6, 2013 at 12:31
4
Solved
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do':
The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
I ha...
3
Solved
having this problem on installing several things on my mac,
i think this problem is coming from upgrading my leopard to snow leopard. Also this problem also is linked with macports i think.
/usr/l...
Kunkle asked 13/9, 2010 at 10:35
2
I tried to install Nokogiri but I always get an compiling error:
checking for libxml/parser.h... *** extconf.rb failed ***
but, I've installed it and all other dependencies.
I try to give the i...
1
Solved
I have the following simple XML file.
<?xml version="1.0"?>
<user-mapping>
</user-mapping>
I want to add content to the user mapping using Nokogiri.
This is my code:
f = Fil...
1
The message on installation says so, but I can't find any reference to it. "are currently known to be broken", but known by whom, and what is the problem? I've checked the Nokogiri code base and is...
1
I have a following HTML and I want to fetch the parents in the document. I used Nokogiri for parsing:
j_text = "<p>
<a>abc</a>
<a>pqr></a>
</p>
<table...
1
Solved
I want to save pdf file which is located in external remote server with ruby. The pdf file is coming in StringIO. I tried saving the data with File.write but it is not working. I received the below...
2
I am using Nokogiri with Ruby on Rails v2.3.8.
Is there a way in which I can avoid pretty-printing in Nokogiri while using to_html?
I read that to_xml allows this to be done using to_xml(:indent ...
Simarouba asked 22/1, 2013 at 13:49
2
Solved
I'm using Ruby to read an XML document and update a single node, if it exists, with a new value.
http://www.nokogiri.org/tutorials/modifying_an_html_xml_document.html
is not obvious to me how to c...
Inositol asked 20/2, 2015 at 10:42
4
I have a nested XML document that looks like this:
<?xml version="1.0"?>
<phone>
<name>test</name>
<descr>description</descr>
<empty/>
<lines>
...
3
Solved
Is there something like Ruby's nokogiri on nodejs?
I mean a user-friendly HTML-parser.
I'd seen on Node.js modules page some parsers, but I can't find something pretty and fresh.
2
Solved
How can I add a Nokogiri::XML::Element to a XML document that is being created with Nokogiri::XML::Buider?
My current solution is to serialize the element and use the << method to have the B...
1
Solved
I finally managed to parse parts of a website:
get '/' do
url = '<website>'
data = Nokogiri::HTML(open(url))
@rows = data.css("td[valign=top] table tr")
erb :muster
end
Now I am tryin...
© 2022 - 2024 — McMap. All rights reserved.