Link to home
Start Free TrialLog in
Avatar of MsSchlien
MsSchlien

asked on

How do I download webpage and parse information using Perl

I need to produce a perl program that will display information from a website. I would like to have 7 columns: Date, Time, Name, Address, DOB, Officer(s), Location


The wesbsite the html information is coming from is: http://www.iowa-city.org/police/arrests.asp?charge=94000

This how I started the Perl program. If anyone could help me out, that would be great




#!/usr/bin/perl -w
 
use strict;
use LWP::Simple;
 
my $stuff = get("http://www.iowa-city.org/police/arrests.asp?charge=94000");
 
my $columnTitle = ("Date, Time, Name, Address, DOB, Officer(s), Location\n");
 
print $columnTitle

Open in new window

Avatar of kawas
kawas
Flag of United States of America image

SOLUTION
Avatar of marchent
marchent
Flag of Bangladesh image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MsSchlien
MsSchlien

ASKER

Thank you, I have looked over the links and they are very helpful. However, could you maybe do an example either through psuedo-code or perl as how to obtain the first name from the table on website.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, this helped a lot.