Written a series of beginner guides for data mining. You can find them at.
Note: The football score capturing script works best for the preceding week or earlier in the same season.
Update: Let's take what we have learned already and apply it. Showed you how to extract data to make your own web page and also showed you how to cut and paste data in another article. If you thought the last web page we created was cumbersome to look at, now we will strip out everything but the teams and scores.
This time we are using the scores from week 3 of the preseason. So nice to be able to use the same code over and over. Anyway we just want the teams and their scores. Extracting the data is so simple and then we just paste everything together and it might look like this:
All it took to do that was only a short bit of code.
# Get score's
# output data
lynx -width 1000 -dump "http://oesrvr1/testcode/getscores1.php" | grep $team > scorefile
cut -c 12-25 scorefile > f1
cut -c 37-39 scorefile > f2
cut -c 49-60 scorefile > f3
cut -c 73-75 scorefile > f4
paste f1 f2 f3 f4 > allscoresfile.txt
$ chmod +x getscores.sh
All for now.
Note: the scrips should work fine on nix based machines, For mswindows, you will want to consider installing cgywin.