nokogiri
Nokogiri leaving HTML entities untouched
I want Nokogiri to leave HTML entities untouched, but it seems to be co开发者_运维知识库nverting the entities into the actual symbol. For example:[详细]
2023-04-12 23:55 分类:问答require nokogiri: Load Error
I\'m new to Ruby and I was looking around for libraries to parse html and found Nokogiri. The problem I\'m having is if I fire up IRB and type require \'nokogiri\', it works fine and prints out true.[详细]
2023-04-12 10:46 分类:问答How can I get XML sub-tags using a regexp for its contents without knowing it's name
I have XML which looks like this when simplified: node_set = Nokogiri::XML(\' <PARENT> <SOME_TAG>12:12:1222</SOME_TAG>[详细]
2023-04-12 04:16 分类:问答How do I get innerHtml using Nokogiri gem
e.g. i have html: <div class=\"item\"> <p> bla bla<br/> bla bla </p> </div> i need to get inner html of div.item:[详细]
2023-04-11 20:51 分类:问答Ruby Nokogiri getting plain text file
I am trying to get a .sql file from an http web server using this code. Nokogiri::HTML(open($sql_file,:http_basic_authentication=>[@usr, @pwd]))[详细]
2023-04-11 12:42 分类:问答Can't assign value to Variable: undefined method `[]' for nil:NilClass (NoMethodError)
I am completely stumped on this one. I have the following code: puts block.at_xpath(\"*/img\")[\"width\"].to_i[详细]
2023-04-10 02:17 分类:问答Using ruby/nokogiri to transform xml to another xml
I\'ve never encountered task of transforming XML from one form to another. I hear that XSLT is just for that, but I don\'t want to go there. So, using only ruby and nokogiri, how can I:[详细]
2023-04-09 15:45 分类:问答XPATH selecting node with attribute and text
Given (no comments about the XML naming necessary): <config> <unit> <var name=\'model\'>3100</var>[详细]
2023-04-09 13:43 分类:问答How to respect Robots.txt using Nokogiri?
I\'m testing it and Nok开发者_JAVA技巧ogiri does not seem to respect Robots.txt file. Is there someway to make it respect? It seems like common question, but I could not find any answer online.Nokogir[详细]
2023-04-09 04:20 分类:问答FF Xpather to Nokogiri -- Can I just copy and paste?
I was doing this manually and then I got stuck and I can\'t figure out why it\'s not working. I downloaded xpather and it is giving me: /html/body/center/table/tbody/tr[3]/td/table as the path to the[详细]
2023-04-08 16:57 分类:问答