From whitethunder922 at yahoo.com Tue Jun 26 11:33:45 2007
From: whitethunder922 at yahoo.com (Matt White)
Date: Tue, 26 Jun 2007 08:33:45 -0700 (PDT)
Subject: [Mechanize-users] (no subject)
Message-ID: <677942.5894.qm@web53311.mail.re2.yahoo.com>
Hello,
I am on a page that lists 78 items and can only show 25 per page, so there are links for each page of results and a "Next >" link. I'd like to get Mechanize to follow the Next link but the link looks like this:
Next >
If I try to "click" the link, Mechanize raises an "unsupported scheme" exception. At this point I am using all sorts of fun regular expressions to parse the Javascript and send the appropriate values to the page with a WWW::Mechanize.post call. Is there an easier way? Thanks.
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070626/5570de69/attachment.html
From schapht at gmail.com Fri Jun 29 09:22:40 2007
From: schapht at gmail.com (Mat Schaffer)
Date: Fri, 29 Jun 2007 09:22:40 -0400
Subject: [Mechanize-users] (no subject)
In-Reply-To: <677942.5894.qm@web53311.mail.re2.yahoo.com>
References: <677942.5894.qm@web53311.mail.re2.yahoo.com>
Message-ID: <24E1D5CA-89F3-473C-8038-C8B729FC5486@gmail.com>
On Jun 26, 2007, at 11:33 AM, Matt White wrote:
> Hello,
>
> I am on a page that lists 78 items and can only show 25 per page,
> so there are links for each page of results and a "Next >" link.
> I'd like to get Mechanize to follow the Next link but the link
> looks like this:
>
> Next >
>
> If I try to "click" the link, Mechanize raises an "unsupported
> scheme" exception. At this point I am using all sorts of fun
> regular expressions to parse the Javascript and send the
> appropriate values to the page with a WWW::Mechanize.post call. Is
> there an easier way? Thanks.
Not yet, I don't think. Javascript support would be awesome, but
it's a heafty beast to tackle. The last time I needed to do
javascript stuff, i basically ended up using a combination of regexps
and lots of code tracing to make the same requests that the
javascript would have made. Charles is a handy tool for viewing the
final request.
-Mat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070629/b3f5909a/attachment.html
From whitethunder922 at yahoo.com Fri Jun 29 10:20:28 2007
From: whitethunder922 at yahoo.com (Matt White)
Date: Fri, 29 Jun 2007 07:20:28 -0700 (PDT)
Subject: [Mechanize-users] (no subject)
Message-ID: <371009.74625.qm@web53301.mail.re2.yahoo.com>
Thanks Mat.
----- Original Message ----
From: Mat Schaffer
To: Ruby Mechanize Users List
Sent: Friday, June 29, 2007 7:22:40 AM
Subject: Re: [Mechanize-users] (no subject)
On Jun 26, 2007, at 11:33 AM, Matt White wrote:
Hello,
I am on a page that lists 78 items and can only show 25 per page, so there are links for each page of results and a "Next >" link. I'd like to get Mechanize to follow the Next link but the link looks like this:
Next >
If I try to "click" the link, Mechanize raises an "unsupported scheme" exception. At this point I am using all sorts of fun regular expressions to parse the Javascript and send the appropriate values to the page with a WWW::Mechanize.post call. Is there an easier way? Thanks.
Not yet, I don't think. Javascript support would be awesome, but it's a heafty beast to tackle. The last time I needed to do javascript stuff, i basically ended up using a combination of regexps and lots of code tracing to make the same requests that the javascript would have made. Charles is a handy tool for viewing the final request.
-Mat
_______________________________________________
Mechanize-users mailing list
Mechanize-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/mechanize-users
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070629/606b4dc3/attachment.html