Retrieving Information from another site
Posted on 2001-08-06
Ok, here is a unique situation. I am not even sure which programming language would be best to use.
What I need to do is to create a script to go to a web page on another site...scan through the html coding for a specific block of information (all contained within <PRE> tags) However there are multiple sets of <pre> tags and I need to pin down just one of them. (The logic is to search for an anchor tag by the name of "lincoln" then begin to cut at the beginning of the next <pre> tag and ending the cut at the end of the next </pre> tag then paste this code into it's own file)
After getting this code, I need it pasted into it's own file, which will overwrite the previous file.
This script needs to run nightly.
The purpose of this is for player statistics for a local hockey team. Right now I have to copy and paste the coding by hand and I want to eliminate this maintenance step.