From: "Eric Wilhelm"
# from Jim Schneider
# on Sunday 12 March 2006 03:44 pm:
2) WWW::Scraper::Zip4 - a simple web scraper to retrieve address
information from the USPS website.
Is this a module and a frontend? Seems like it shoud be something like
App::USPS::Scraper unless it provides generically reusable methods for
handling zip codes.
Nope, it's pretty much a one-trick pony. It scrapes ZIP code and address
information from the USPS website. Usage is similar to this:
my $zip4 = new WWW::Scraper::Zip4;
$zip4->lookup(addr1 => $addr, city => $city, state => $state)
or die "Error finding address\n";
print "The ZIP+4 code for ", $zip4->addr1, ", ", $zip4->city,
", ", $zip4->state, " is ", $zip4->zip4, "\n";
As for the suggestion that I take a look at Scrape::USPS::ZipLookup (from a
different message) - that module doesn't seem to be maintained. The only
way I can find it is by using the CPAN search, and the copyright date is
2001. The ZIP+4 lookup webapp has moved at least twice that I'm aware of
since then.