Query Results on Multiple Pages

Hello,

I'm trying to write a script to send a query to the patent and
trademark office webpage and capture the URL's pointing to the patents
identified. The problem is that the results appear on more than one
page (like Google lists its results on multiple pages). How do I write
a script that will access the other pages?

Flynfast
spencell [ Di, 11 Juli 2006 00:01 ] [ ID #1388027 ]

Re: Query Results on Multiple Pages

On 10 Jul 2006, at 23:01, flynfast wrote:
> I'm trying to write a script to send a query to the patent and
> trademark office webpage and capture the URL's pointing to the patents
> identified. The problem is that the results appear on more than one
> page (like Google lists its results on multiple pages). How do I
> write
> a script that will access the other pages?

Find the link to the next page in the source and fetch it. Repeat.

--
Andy Armstrong, hexten.net
Andy [ Di, 11 Juli 2006 11:59 ] [ ID #1388028 ]

Re: Query Results on Multiple Pages

On Mon, 10 Jul 2006, flynfast wrote:

> I'm trying to write a script to send a query to the patent and
> trademark office webpage and capture the URL's pointing to the patents
> identified. The problem is that the results appear on more than one
> page (like Google lists its results on multiple pages). How do I write
> a script that will access the other pages?

I hereby wager 50 British pence that you'll find that on CPAN. Have you
looked for a patent search module there?

(the winner must collect his/her winnings in person ;-)


John
jjl [ Di, 11 Juli 2006 20:04 ] [ ID #1388029 ]
Perl » perl.libwww » Query Results on Multiple Pages

Vorheriges Thema: LWP and proxying/authentication??
Nächstes Thema: It works in Firefox, why not in $mech?