From peter at hexagile.com Fri Nov 5 07:14:19 2010 From: peter at hexagile.com (Peter Szinek) Date: Fri, 5 Nov 2010 12:14:19 +0100 Subject: [Celerity-users] How to work this around? Message-ID: Hey guys, Any quick & dirty solution to this problem: b = Celerity::Browser.new b.goto " http://jobs.brassring.com/1033/ASP/TG/cim_advsearch.asp?ref=172009113323&partnerid=11721&siteid=78 " Celerity::Exception::UnexpectedPageException: image/gif from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:737:in `page=' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:773:in `enable_event_listener' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `call' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `webWindowClosed' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `each' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `webWindowClosed' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:100:in `goto' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/container.rb:761:in `rescue_status_code_exception' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:99:in `goto' from (irb):12 I know it's a htmlunit problem etc. etc. - I just need a quick wokraround this time if possible... Cheers, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From kolbrich at icontact.com Fri Nov 5 08:14:16 2010 From: kolbrich at icontact.com (Kevin Olbrich) Date: Fri, 5 Nov 2010 08:14:16 -0400 (EDT) Subject: [Celerity-users] How to work this around? In-Reply-To: Message-ID: <27513711.108.1288959254123.JavaMail.kolbrich@kolbrich-mac.local> It looks like that url is returning an image and not a html page. When I've wanted to hit a specific resource that isn't really a web page, I have dropped back to using a head request via HTTParty to do the request. require 'httparty' response = HTTParty.head(url) the response will contain the headers and response code without actually retrieving the resource. You could probably use a get for this as well. FYI, HTTParty works fine in jruby Kevin Olbrich Operations Engineer - iContact Corp. kolbrich at icontact.com | ? 919.459.0889 | www.icontact.com Welcome to WOW - it starts here! From: "Peter Szinek" To: celerity-users at rubyforge.org Sent: Friday, November 5, 2010 7:14:19 AM Subject: [Celerity-users] How to work this around? Hey guys, Any quick & dirty solution to this problem: b = Celerity::Browser.new b.goto " http://jobs.brassring.com/1033/ASP/TG/cim_advsearch.asp?ref=172009113323&partnerid=11721&siteid=78 " Celerity::Exception::UnexpectedPageException: image/gif from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:737:in `page=' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:773:in `enable_event_listener' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `call' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `webWindowClosed' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `each' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in `webWindowClosed' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:100:in `goto' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/container.rb:761:in `rescue_status_code_exception' from /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:99:in `goto' from (irb):12 I know it's a htmlunit problem etc. etc. - I just need a quick wokraround this time if possible... Cheers, Peter _______________________________________________ Celerity-users mailing list Celerity-users at rubyforge.org http://rubyforge.org/mailman/listinfo/celerity-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at hexagile.com Fri Nov 5 09:59:47 2010 From: peter at hexagile.com (Peter Szinek) Date: Fri, 5 Nov 2010 14:59:47 +0100 Subject: [Celerity-users] How to work this around? In-Reply-To: <27513711.108.1288959254123.JavaMail.kolbrich@kolbrich-mac.local> References: <27513711.108.1288959254123.JavaMail.kolbrich@kolbrich-mac.local> Message-ID: Thanks Kevin - however, I need a celerity solution (my scraping framework is built on celerity, so can't just plug in HTTParty)... AFAIK Celerity can't work with a string? (ie I'd get the HTML via HTTParty and start celerity with that?) Any other solution? I don't care how ugly... Cheers, Peter On Fri, Nov 5, 2010 at 1:14 PM, Kevin Olbrich wrote: > It looks like that url is returning an image and not a html page. > > When I've wanted to hit a specific resource that isn't really a web page, I > have dropped back to using a head request via HTTParty to do the request. > > require 'httparty' > > response = HTTParty.head(url) > > the response will contain the headers and response code without actually > retrieving the resource. You could probably use a get for this as well. > > FYI, HTTParty works fine in jruby > ------------------------------ > > *Kevin Olbrich* > Operations Engineer - iContact Corp. > kolbrich at icontact.com | ? 919.459.0889 | www.icontact.com > ------------------------------ > > Welcome to WOW - it starts here! > > > ------------------------------ > *From: *"Peter Szinek" > *To: *celerity-users at rubyforge.org > *Sent: *Friday, November 5, 2010 7:14:19 AM > *Subject: *[Celerity-users] How to work this around? > > > Hey guys, > > Any quick & dirty solution to this problem: > > b = Celerity::Browser.new > b.goto " > http://jobs.brassring.com/1033/ASP/TG/cim_advsearch.asp?ref=172009113323&partnerid=11721&siteid=78 > " > Celerity::Exception::UnexpectedPageException: image/gif > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:737:in > `page=' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:773:in > `enable_event_listener' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in > `call' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in > `webWindowClosed' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in > `each' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/listener.rb:120:in > `webWindowClosed' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:100:in > `goto' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/container.rb:761:in > `rescue_status_code_exception' > from > /Users/Marianna/devel/bin/jruby-1.5.0/lib/ruby/gems/1.8/gems/celerity-0.7.9/lib/celerity/browser.rb:99:in > `goto' > from (irb):12 > > I know it's a htmlunit problem etc. etc. - I just need a quick wokraround > this time if possible... > > Cheers, > Peter > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at hexagile.com Thu Nov 11 17:02:03 2010 From: peter at hexagile.com (Peter Szinek) Date: Thu, 11 Nov 2010 23:02:03 +0100 Subject: [Celerity-users] New HTMLUnit snapshot Message-ID: Hi guys, I have 2 scenarios which are working with HTMLUnit but not celerity. How complicated is to take a snapshot and put it into the latest celerity? Java and me are not very good friends :) (e.g. it took me 3 hours to compile a minimal HTMLUnit test file). Any 'HTMLUnit4Celerity for dummies'-style guide? Cheers, Peter From jari.bakken at gmail.com Fri Nov 12 05:33:43 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 12 Nov 2010 11:33:43 +0100 Subject: [Celerity-users] New HTMLUnit snapshot In-Reply-To: References: Message-ID: On Thu, Nov 11, 2010 at 11:02 PM, Peter Szinek wrote: > Hi guys, > > I have 2 scenarios which are working with HTMLUnit but not celerity. > How complicated is to take a snapshot and put it into the latest > celerity? Java and me are not very good friends :) (e.g. it took me 3 > hours to compile a minimal HTMLUnit test file). Any 'HTMLUnit4Celerity > for dummies'-style guide? > I've updated the jars and pushed a new release - 0.8.3. Assuming you're on a *nix system, you can do this yourself by updating the URL in tasks/snapshot.rake (if necessary) and then running `rake snapshot`. Jari From jari.bakken at gmail.com Fri Nov 12 06:13:57 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 12 Nov 2010 12:13:57 +0100 Subject: [Celerity-users] New HTMLUnit snapshot In-Reply-To: References: Message-ID: Ooops, bad release. Grab 0.8.4 instead. On Fri, Nov 12, 2010 at 11:33 AM, Jari Bakken wrote: > On Thu, Nov 11, 2010 at 11:02 PM, Peter Szinek wrote: >> Hi guys, >> >> I have 2 scenarios which are working with HTMLUnit but not celerity. >> How complicated is to take a snapshot and put it into the latest >> celerity? Java and me are not very good friends :) (e.g. it took me 3 >> hours to compile a minimal HTMLUnit test file). Any 'HTMLUnit4Celerity >> for dummies'-style guide? >> > > I've updated the jars and pushed a new release - 0.8.3. > > Assuming you're on a *nix system, you can do this yourself by updating > the URL in tasks/snapshot.rake (if necessary) and then running `rake > snapshot`. > > Jari > From peter at hexagile.com Fri Nov 12 06:57:03 2010 From: peter at hexagile.com (Peter Szinek) Date: Fri, 12 Nov 2010 12:57:03 +0100 Subject: [Celerity-users] New HTMLUnit snapshot In-Reply-To: References: Message-ID: Wow cool - you rock! Cheers, Peter On Fri, Nov 12, 2010 at 12:13 PM, Jari Bakken wrote: > Ooops, bad release. Grab 0.8.4 instead. > > On Fri, Nov 12, 2010 at 11:33 AM, Jari Bakken wrote: >> On Thu, Nov 11, 2010 at 11:02 PM, Peter Szinek wrote: >>> Hi guys, >>> >>> I have 2 scenarios which are working with HTMLUnit but not celerity. >>> How complicated is to take a snapshot and put it into the latest >>> celerity? Java and me are not very good friends :) (e.g. it took me 3 >>> hours to compile a minimal HTMLUnit test file). Any 'HTMLUnit4Celerity >>> for dummies'-style guide? >>> >> >> I've updated the jars and pushed a new release - 0.8.3. >> >> Assuming you're on a *nix system, you can do this yourself by updating >> the URL in tasks/snapshot.rake (if necessary) and then running `rake >> snapshot`. >> >> Jari >> > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > From tomas.pospisek at zhdk.ch Mon Nov 22 07:39:47 2010 From: tomas.pospisek at zhdk.ch (tomas.pospisek at zhdk.ch) Date: Mon, 22 Nov 2010 13:39:47 +0100 Subject: [Celerity-users] download section on celerity homepage is out of date Message-ID: The download section on the celerity homepage http://celerity.rubyforge.org/ links to http://rubyforge.org/frs/?group_id=6198 and the most recent gem for download there is 0.7 As far as I can tell, the most recent celerity release is 0.8.4 though? It'd be nice to fix the download tab to link to the site that contains the current gems. Thanks, *t From jari.bakken at gmail.com Mon Nov 22 08:41:58 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Mon, 22 Nov 2010 14:41:58 +0100 Subject: [Celerity-users] download section on celerity homepage is out of date In-Reply-To: References: Message-ID: On Mon, Nov 22, 2010 at 1:39 PM, wrote: > The download section on the celerity homepage http://celerity.rubyforge.org/ links to http://rubyforge.org/frs/?group_id=6198 and the most recent gem for download there is 0.7 > > As far as I can tell, the most recent celerity release is 0.8.4 though? It'd be nice to fix the download tab to link to the site that contains the current gems. > I've updated the links to point to rubygems.org - thanks!