similar to: hpricot won't scrape! (newb question)

Displaying 20 results from an estimated 100 matches similar to: "hpricot won't scrape! (newb question)"

2007 Feb 10
2
Ferret and Paginating Find
Hey all, I''ve been really happy with ferret thus far and all my search on my site is based on it. One of the recent challenges I ran into is changing some of my pagination within my site. Until now, I just used the tutorials out there that talk about how to get pagination working with acts_as_ferret. Recently, I decided to change my pagination to begin using the "Paginating
2007 Apr 01
1
Ajax response not evaluating?
This is an odd one. I just noticed that for some odd reason, my ajax responses on graphics-world.com (rate a tutorial, report a tutorial, etc.) are not being evaluated. To make the puzzle even more interesting, it does work fine when a user is logged in! Looking at the request/response cycle in Firebug, everything is fine. Here is a sample response for non-logged in user:
2006 Oct 18
3
[Bug] Seg Faulting in index.rb:718
Hey, Ferret is repeatedly seg-faulting my mongrel servers on the same line: /usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:718: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i686-linux] I''m using ferret 0.10.11. I haven''t had the time to dig into yet, it''s on the backburner right now - I just keep several spare servers and restart them
2007 Nov 14
0
Hpricot & mechanize fail to parse page after redirect1q
Hi everyone, My quest with mechanize/Hpricot continues :) Something extremely strange happened today - some simple working code broke down, and i can''t figure out why. I am trying to access a piratebay.org search page, which does a redirect to a relative url like this: original link: http://thepiratebay.org/s/?page=0&orderby=3&q=football+manager+2008&searchTitle=on redirects
2007 Mar 15
0
Getting info from an Hpricot::Elem
How about getting the name and value from this element object: irb(main):079:0> elements[1] => {emptyelem <input name="SNMPTrustedHost" type="hidden" value="1.2.3.4">} irb(main):080:0> elements[1].class => Hpricot::Elem If I can do that, then I''m home free. I''ve been looking at the Hpricot docs, but I''m not
2007 Mar 15
0
SOLVED: Getting info from an Hpricot::Elem
I knew as soon as I hit the enter key, the intelligence would feed my brain. The answer to this is: elements[1]["value"] Easy Peasy....and why not? (there is a pun there if you can see it) Thanks for listening. Mike B. ----- Forwarded message from barjunk at attglobal.net ----- Date: Wed, 14 Mar 2007 17:49:57 -0800 From: barsalou <barjunk at attglobal.net> Reply-To:
2011 Jan 06
0
parse.rb:33: [BUG] Segmentation fault ruby 1.8.7 Hpricot
Has anyone had this issue above with hpricot? I cannot seem to find a solution that works. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2007 Jan 04
0
Hpricot
Hi: Anyone had any luck with parsing Amazon Open Search XML using Hpricot?.. I am having touble with the following types (tags with : and /) of Open Search XML tags..i.e. <opensearch:totalresults>81</opensearch:totalresults> and <link />http://cnn.com <br /> abc, xyz etc.. I am getting the following error link: parse.rb:8: undefined method `innerHTML'' for
2009 Sep 25
1
how to remove bogusetag by hpricot?
I have use hpricot to translate users'' input html. I want to remove bogusetag as follows: >>doc = Hpricot "<p> test world</b></p>", :xhtml_strict => true =>#<Hpricot::Doc {elem <p> " test world" {bogusetag </b>} </p>}> >>doc.to_s =>"<p> test world</b></p>" what I expected is
2007 May 21
0
How to delete a node with Hpricot?
Hi, Sorry if this is not the right forum for this question. If a node is bad I''m trying to comment it out. If it''s really bad I''m trynig to delete it. The way I''m trying to do is is as follows. def this_is_a_problem doc = Hpricot( html ) doc.traverse_element do |node| if some_bad_node_test unless really_bad? node.swap( "<!-- comment
2010 Jan 06
0
Built with Rails: http://hpricot.com
People, I enhanced http://hpricot.com and deployed it to heroku. I use hpricot.com to build and test various hpricot expressions and then run them against a variety of websites. Hpricot.com shows you the resulting html. Also hpricot.com will render the resulting html. For some development activities, hpricot.com is useful. If you have any questions, e-me. Thanks, --Dan Bikle -- You
2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!). Testing your views with Hpricot: http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails- views-with-hpricot/ Big thanks to _why for a great little library! Feedback is appreciated. rSpec integration coming soon (hopefully!). Cheers, Luke Redpath contact@lukeredpath.co.uk -------------- next part -------------- An HTML
2007 Jun 11
3
hpricot as dependency for building rspec?
It looks to me that hpricot is a dependency to building rspec: euclid% rake pre_commit (in /Users/smtlaissezfaire/ruby/projects/rspec/hpricot) rake aborted! Could not find RubyGem hpricot (>= 0.0.0) /Users/smtlaissezfaire/ruby/projects/rspec/hpricot/rakefile:9 (See full trace by running task with --trace) Let me know if I''m wrong. Otherwise, I''ll submit a patch in the docs.
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows .. So from irb, I can load hpricot ok. (ruby 1.8.7) C:\Users\Laurence\rails-play\plug-test>irb irb(main):001:0> require ''hpricot'' LoadError: no such file to load -- hpricot from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''rubygems'' => true irb(main):003:0> require
2007 Dec 03
1
./configure -> "libgd unusable" (shall I build from source or scrape and rebuild?)
On a relatively new Nagios 2.x / CentOS 4.x server (only like a week old), I am experiencing gd(-devel/-progs) problems and am wondering if I should just scrape and rebuild. Here is my situation: I installed LAMP+Nagios+NagiosQL and was going to install PerfParse so that I could have trending info integrated with Nagios. The configure script would run ok, but would crap out on make &&
2011 Dec 22
0
RHTMLForms / Scrape data from website that needs a parameter in-putted
Hi, I'm trying to get a list of addresses from http://tatts.com/racing/outletsearch based on a list of postcodes (zip codes) and states. For example, I'm looking for State = 'Northern Territory' and Postcode = '0800'. The list I'm working off is about 500 long so I was hoping to find a way to script this in R. I regularly us readLines and the XML library to scrape
2010 Oct 20
0
Scrape data from AdWords
http://www.skyrocketonlinemarketing.com/2010/06/20/scrape-ppc-spend-data-from-adwords-with-ruby-mechanize/ Jonathan Clarke ? Campaign Manager U365 Cell Number: +1-246-256-0770 Skype IM Chat: jonathan.clarke This message is intended only for the addressee and contains privileged and confidential information. If you have received this message in error please notify me immediately and delete the
2012 Jun 01
1
Help with this web scrape function
Hello, I am looking to scrape this Webpage: http://toast.gasunie.de/gud/search.aspx?soid=GUD&lang=de The page uses the method "POST", it contains various HTML Forms, mostly lists and a couple of radio buttons. After submit, I should get forwarded to a new page. Which selections are being made in the forms does not really matter, I get quite far, pls see the code: library(RCurl)
2024 Sep 03
0
Goodreader: Scrape and Analyze 'Goodreads' Book Data
Dear R Users, I am pleased to announce that Goodreader 0.1.1 is now available on CRAN. Goodreader offers a toolkit for scraping and analyzing book data from Goodreads. Users can search for books, scrape detailed information and reviews, perform sentiment analysis on reviews, and conduct topic modeling. Here?s a quick overview of how to use Goodreader: # Search for books AI_df <-
2024 Sep 03
0
Goodreader: Scrape and Analyze 'Goodreads' Book Data
Dear R Users, I am pleased to announce that Goodreader 0.1.1 is now available on CRAN. Goodreader offers a toolkit for scraping and analyzing book data from Goodreads. Users can search for books, scrape detailed information and reviews, perform sentiment analysis on reviews, and conduct topic modeling. Here?s a quick overview of how to use Goodreader: # Search for books AI_df <-