I need to extract just the info on the page but what I am doing is not working as I had hoped.
If you look at this url:
http://arrestinquiryweb.co.mecklenb...est=&BrowseArrestDate=&BrowseLastDayArrests=X
I can get all the basic info. Where I run into problems is at the point of the line that reads "Charges for Arrest #" and the items that follow it.
1. I need to be able to pull the Arrest number from that line "Charges for Arrest #"
2. I also need the court case, arrest type, charge description, Bond Amount, Bond Type, and Arrest Process.
The catch is that if there is more than one court case, arrest type, etc. I need to be able to add a 2nd line to my results file.
So for example for this url:
http://arrestinquiryweb.co.mecklenb...est=&BrowseArrestDate=&BrowseLastDayArrests=X
I am trying to end up with the following line(s) in a text file, (1 line each of course but they are word wrapped here):
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235101,TRAFFIC DRIVING WHILE IMPAIRED, 2500, SECURED
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235201,TRAFFIC RECKLESS DRIVING - WILLFUL/WANTON DISREGARD,500,SECURED
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235301,TRAFFIC FAILURE TO COMPLY WITH LICENSE RESTRICTIONS,500,SECURED
I can get everything to work except the portion at the end which contains the court case, type, charge description, etc. The end goal is a file I can easily import into a DB. Unfortunately I do not have access to the sites db or else this would be so simple
If you look at this url:
http://arrestinquiryweb.co.mecklenb...est=&BrowseArrestDate=&BrowseLastDayArrests=X
I can get all the basic info. Where I run into problems is at the point of the line that reads "Charges for Arrest #" and the items that follow it.
1. I need to be able to pull the Arrest number from that line "Charges for Arrest #"
2. I also need the court case, arrest type, charge description, Bond Amount, Bond Type, and Arrest Process.
The catch is that if there is more than one court case, arrest type, etc. I need to be able to add a 2nd line to my results file.
So for example for this url:
http://arrestinquiryweb.co.mecklenb...est=&BrowseArrestDate=&BrowseLastDayArrests=X
I am trying to end up with the following line(s) in a text file, (1 line each of course but they are word wrapped here):
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235101,TRAFFIC DRIVING WHILE IMPAIRED, 2500, SECURED
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235201,TRAFFIC RECKLESS DRIVING - WILLFUL/WANTON DISREGARD,500,SECURED
BELK, HILLARY ANGELA,1372347,,303666,01/14/1982,W/F,07/10/2008,CMPD,1630 DILWORTH RD E CHARLOTTE NC 28203,0823235301,TRAFFIC FAILURE TO COMPLY WITH LICENSE RESTRICTIONS,500,SECURED
I can get everything to work except the portion at the end which contains the court case, type, charge description, etc. The end goal is a file I can easily import into a DB. Unfortunately I do not have access to the sites db or else this would be so simple