Can someone code this in PERL for me?

  • Thread starter Thread starter I Drive Cab
  • Start date Start date
I

I Drive Cab

Guest
I need a perl script that I can set a cron job for that will check the following site:
http://www.pwc.state.pa.us/Summary.aspx
and retrieve any new incidents and log them to a text file.

Essentially, I would also ask that the code for each incident be saved so I could view it in a web browser...for instance, in the above URL, the code for each incident is as follows:

<td><a href="Detail.aspx?CADNumber=2009 - 14666" target="Detail">2009 - 14666</a></td><td align="right">1/27/2009</td><td align="right">9:56 PM</td><td>DISABLED MOTORIST </td><td>45 I81 N </td><td>SOUTH MIDDLETON </td><td>CUMBERLAND COUNTY </td>

I'm begging here. Thanks!
 
That's a significantly time consuming task. I'm on a couple of mailing lists where I've given people working code, but what you're asking for is less than trivial. You'll need to hire someone, which would cost you upwards of $40.

Alternatively, you can do it yourself. Personally I prefer Python with Beautiful Soup or lxml. You could combine time.sleep(...) with urllib2.open(...) to make a daemon. You could start the daemon when you boot up or manually.
 
That's a significantly time consuming task. I'm on a couple of mailing lists where I've given people working code, but what you're asking for is less than trivial. You'll need to hire someone, which would cost you upwards of $40.

Alternatively, you can do it yourself. Personally I prefer Python with Beautiful Soup or lxml. You could combine time.sleep(...) with urllib2.open(...) to make a daemon. You could start the daemon when you boot up or manually.
 
Back
Top