nokogiri Questions

3

Solved

I'd like to open a web page with Nokogiri and extract all the words that a user sees when they visit the page in a browser and analyze the word frequency. What is the easiest way of getting all re...
Latrell asked 25/5, 2011 at 18:51

8

Solved

Here is the error running bundle install vendor/gems on server: Installing nokogiri (1.5.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension....
Bugbear asked 4/11, 2011 at 0:9

2

While executing sudo bundle install I am getting the following error. Gem files will remain installed in /Users/madhakul/Documents/Inshort/puurna/vendor/cache/ruby/2.3.0/gems/nokogiri-1.6.6.2 for i...
Peahen asked 3/11, 2018 at 17:43

1

I recently upgraded to Ruby v2.7.0. When I tried to install Nokogiri I got the following error: ERROR: Error installing nokogiri: The last version of nokogiri (>= 0) to support your Ruby &amp...
Remainderman asked 12/3, 2020 at 17:3

7

Solved

I'm having issues with bundling my Gemfile. I have Nokogiri installed already yet when I run bundle install it fails to load Nokogiri. Installing Nokogiri: gem install nokogiri Building native e...
Caracalla asked 12/3, 2015 at 21:24

1

I need to replace a node in a document with new HTML I'm creating. The class of the node I have to replace is: Nokogiri::XML::Node I create my fragment using the Nokogiri Builder: new_node = N...
Fitz asked 21/2, 2020 at 0:20

3

Solved

I'm logged into a webpage/servlet using Mechanize. I have a page object: jobShortListPg = agent.get(addressOfPage) When I use: puts jobShortListPg I get the "mechanized" version of the page ...
Charleen asked 26/6, 2011 at 22:20

2

Solved

I can't remove whitespaces from a string. My HTML is: <p class='your-price'> Cena pro Vás: <strong>139 <small>Kč</small></strong> </p> My code is: ...
Galatia asked 2/1, 2013 at 18:52

5

Solved

I'm trying to use Nokogiri to parse an HTML file with some fairly eccentric markup. Specifically, I'm trying to grab divs which have both ids, multiple classes and styles defined. The markup look...
Conditioned asked 29/8, 2010 at 1:51

8

Solved

I'm using Nokogiri and open-uri to grab the contents of the title tag on a webpage, but am having trouble with accented characters. What's the best way to deal with these? Here's what I'm doing: r...
Dorton asked 3/4, 2010 at 19:28

4

Solved

How can I get the mail address from HTML code with Nokogiri? I'm thinking in regex but I don't know if it's the best solution. Example code: <html> <title>Example</title> <bo...
Longlegged asked 29/2, 2012 at 1:12

18

Solved

I'm running bundle install and I'm getting this error: Building nokogiri using system libraries. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ru...
Bunin asked 15/5, 2014 at 3:20

4

Solved

I'm looking to load a few libraries, have them do some work, and then do the opposite of require to avoid compatibility errors later. I don't want to have to dump to a file and restart a shell, as ...
Emanuele asked 3/11, 2013 at 12:43

15

I try to clone this repo and run bundle install. The bundle process failed and throw this error: ... Installing nokogiri 1.6.2.1 with native extensions Building nokogiri using packaged librarie...
Follansbee asked 30/11, 2015 at 10:34

33

Solved

I've been trying to install Nokogiri on Mac OS 10.9.3 and whatever I try, the install fails in the end with the following error message: $ sudo gem install nokogiri -- --with-xml2-include=/usr/loc...
Antacid asked 3/4, 2011 at 9:54

6

Solved

I recognize that this is a duplicate question however all the other answers I've found related to this issue have not seemed to help me... I'm installing GitLab and running through the gem depende...
Nickola asked 18/4, 2013 at 13:20

2

Solved

There is a known error installing the latest version of Nokogiri. The workaround is to manually install using gem install nokogiri -- --use-system-libraries But how can this be done via the Gemf...
Goldwin asked 21/4, 2015 at 20:57

7

Solved

I'm trying to install the bundle(bundle install) in Ubuntu 14.0.4 installed Ruby 1.8.7.And it fails to install the bundle and displayed the error: An error occurred while installing nokogiri (1.4...
Ingulf asked 11/6, 2015 at 12:36

2

Solved

When I type "gem install nokogiri" I receive the error: ERROR: While executing gem ... (Errno: EACCES) Permission denied - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ nokogiri-1.6.0-x86...
Immune asked 26/6, 2013 at 22:4

0

I am setting up Fastlane with Slather. The slather step is failing with [13:55:11]: nokogiri requires Ruby version >= 2.3.0. running ruby -v I get ruby 2.3.7p456 (2018-03-28 revision 63024)...
Unanimous asked 4/4, 2019 at 12:58

8

Solved

When running Bundle Install or Gem Install Nokogiri, I get the same issue which is preventing my app from running. I suspect this issue is local and came from moving everything up to Rails 5, but I...
Hoitytoity asked 31/10, 2017 at 15:0

1

I have a problem installing Nokogiri. I read the install manual and followed the instructions. I have installed all dependences. libxml2 and libxslt work fine but libiconv had some problems. I rea...
Adown asked 14/7, 2014 at 11:29

3

Solved

I have many levels of a nested hash like: { :foo => 'bar', :foo1 => { :foo2 => 'bar2', :foo3 => 'bar3', :foo4 => { :foo5 => 'bar5' }}} How can I convert them into an XML like ...
Aspirin asked 13/8, 2012 at 11:31

6

Solved

I have a document which look like this: <div id="block"> <a href="http://google.com">link</a> </div> I can't get Nokogiri to get me the value of href attribute. I'd like...
Firetrap asked 18/8, 2011 at 12:46

4

I am parsing an html file using nokogiri and modifying it and then outputting it to a file like this: htext= File.open(inputOpts.html_file).read h_doc = Nokogiri::HTML(htext) File.open(outputfile,...
Punjab asked 8/9, 2014 at 17:43

© 2022 - 2024 — McMap. All rights reserved.