Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl to initiate and parse web search results

Thread Tools

Perl to initiate and parse web search results

Posts: n/a
Hi folks,

I am wondering if Perl can be used to help me search numerous online
classified ads. Every week I want to search local papers across the US
for classic cars for sale. I have a serious of URL's that I must not
click on and then view the results. Is there any way I can use a Perl
script to both execute the search and parse the results?

here is an example URL that searches a paper in Virginia and returns
(today) 7 results. Thanks in advance,


Reply With Quote
Posts: n/a
yes, that works like a charm! Thanks Jim. From my example, I would
use the following to count the number of times "CHEV" appears in the
Classifieds section of the newspaper I am searching:

use LWP::Simple;

my $catalog =
get(" ortation&tp=CHARLOTTESVILLE+VA&property=charlottes ville+va&orderby=start_date:d&category_number=1490 &maxrec=10&date=TODAY,SUNDAY_BEFORE(TODAY)%2");

my $count = 0;
$count++ while $catalog =~ m{CHEV}gi;
print "$count\n";


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Hacker, Python Initiate Gary Chambers Python 11 02-03-2011 04:26 PM
UPDATE : Help Required to Populate search results - Array Search Craig Keightley Javascript 10 06-29-2005 10:54 AM
...How to parse search engine results fast? VB Perl Misc 3 02-03-2005 11:05 PM
Initiate perl script in linux from a Windows VBA program b wreath Perl Misc 3 06-02-2004 04:32 PM
Why can't I parse google search results? bob Perl Misc 11 12-09-2003 07:41 AM