When I run: #!/usr/bin/env ruby require 'nokogiri' xml = <<-EOXML <pajamas> <bananas> <foo>bar</foo> <bar ...
When I run: #!/usr/bin/env ruby require 'nokogiri' xml = <<-EOXML <pajamas> <bananas> <foo>bar</foo> <bar ...
when scraping the forexfactory calendar, there is a space in the <table class="calendar__table "> and so nokogiri is not able to find the table. ...
I have tried scraping a web page with ruby mechanize but is not working. Basically that website have some products and i need the links of the product ...
I am writing a rake task to change HTML string to JSON for which I am using Nokogiri to parse the HTML string and build JSON, everything is going fine ...
I'm using Nokogiri to parse a webpage. I'm able to succefully get the 1st bookTitle class element, but I'm trying to get all of the titles in an arra ...
I have an xml that looks like this <list> <item> <id>1</id> <data>123</data> </item> <item> < ...
# Gemfile.lock - nokogiri (1.13.1) - mini_portile2 (~> 2.7.0) + nokogiri (1.13.9-x86_64-linux) ... PLATFORMS - ruby + x86_64-linux Hello! D ...
I have a simple web test scenario with Capybara running webrick and poltergeist, but it is driving me mad: let(:person) { create(:person) } scena ...
I'm trying to save the links only of the sample pages in this website MusicRadar require 'open-uri' require 'nokogiri' link = 'https://www.musicradar ...
Here is the output of node.to_xml Here is the corresponding rspec test: But I'm getting this error: ...
I have a problem with using the M1 processor and Nokogiri gem. Gemfile When I run bundle install, all seems good, but when I try to run specs, for ...
I have an xml file. I need to show the <generic:ObsValue value="x"/> from the group <generic:Obs> if the <generic:Value id="TIME_PER ...
I'm a professional indexer new to Ruby and nokogiri and I am in need of some assistance. I'm working on a set of macros that will allow me to take an ...
Say I have How can I get to the p node from h3 Right now I can only get from doc.css('h3').next_element which doesn't take any arguments and retur ...
I am currently working in a web scrapping project with ruby on rails and below is the web-page link I am working on. https://www.livelaw.in/top-stori ...
How can I add a custom XPath function for class check to Nokogiri? I.e. something like https://gist.github.com/knu/087b7f89bb31de4f419c, but performi ...
I have an xml file from which I need to extract all values that contain https://www.example.com/a/b: Given the above, this should return two result ...
HTML (particularly MathML) can be heavily nested. With Ruby-Nokogiri, I want to search for a node at the uppermost levels, which are arbitrary, within ...
In my rails app I have a nokogiri, watir crawler that was working fine. After I upgraded my gems (also upgrading e.g. selenium), when I open the crawl ...
I am running a rails app with docker-compose on a m1 mac. Kept getting 2 specific errors, This is the first one This is the second one. The err ...