hpricot Questions

4

Solved

Given: require 'rubygems' require 'nokogiri' value = Nokogiri::HTML.parse(<<-HTML_END) "<html> <body> <p id='para-1'>A</p> <div class='block' id='X1'> <h...
Etalon asked 12/10, 2009 at 18:0

2

Periodically I get this exception: NotImplementedError: method `at' called on terminated object on this line of code: next if Hpricot(html).at('a') What does this error mean? How can I avoid ...
Burnie asked 13/1, 2011 at 6:41

1

Solved

I am using Hpricot and OpenURI to parse webpages and extract URLs from them. When I get a link like "http:rapidshare.com", it is not redirecting to https. This is the error I got: /home/leonidus/...
Stypsis asked 4/4, 2012 at 14:32

5

I am trying to install hpricot using the command: >gem install hpricot -v 0.8.2 Building native extensions. This could take a while... ERROR: Error installing hpricot: ERROR: Failed to build gem ...
Wuhsien asked 11/11, 2009 at 22:24

3

Solved

I have just started learning Ruby. Very cool language, liking it a lot. I am using the very handy Hpricot HTML parser. What I am looking to do is grab all the text from the page, excluding the HT...
Lineation asked 7/8, 2009 at 9:27

3

Solved

i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this?
Ardith asked 22/8, 2010 at 19:13

2

Solved

I need to scrape data from a site, but it requires my login first. I've been using hpricot to successfully scrape other sites, but I'm new to using mechanize, and I'm truly baffled by how to work i...
Civic asked 8/7, 2011 at 19:39

1

I'd like to convert html to plain text. I don't want to just strip the tags though, I'd like to intelligently retain as much formatting as possible. Inserting line breaks for <br> tags, detec...
Nolannolana asked 20/5, 2011 at 14:39

3

Solved

Which one would you choose? My important attributes are (not in order): Support and future enhancements. Community and general knowledge base (on the Internet). Comprehensive (I.E., proven to par...
Franke asked 22/5, 2010 at 15:5

3

When trying Hpricot and Nokogiri, the HTML can be fetched and parsed, but can they also execute the Javascript as well so that the content shows on the page? (shows up in the the DOM). That's becau...
Micco asked 5/9, 2010 at 19:11

3

I've come across an issue which unfortunately I can't seem to surpass, I'm also just a newborn to Ruby on rails unfortunately hence the number of questions I am attempting to scrape a webpage such...
Sacha asked 12/11, 2009 at 1:23

4

Solved

There are lots of examples of how to strip HTML tags from a document using Ruby, Hpricot and Nokogiri have inner_text methods that remove all HTML for you easily and quickly. What I am trying to d...
Ike asked 30/9, 2009 at 11:6

1

Solved

Now that http://github.com/why/hpricot/wikis/home no longer exists.
Matthei asked 6/9, 2009 at 17:45
1

© 2022 - 2024 — McMap. All rights reserved.