Dresden Olympiad 2008: Round 1 ALL the games in PGN

Thanks to Yusof again, I managed to figure out the directory and file naming structure from the official site to get the individual PGN files.

image

Wrote a simple script in PHP to copy the games into one file.

For those programmers out there. Here is the script if you are interested :)

<?php
// get Dresden PGN Round 1
for ($table=1;$table<=77;$table++) {
    for ($board=1;$board<=4;$board++) {
            $filename = “http://schachlive.dresden2008.de/games/m/1/$table/$board/1″.sprintf(”%02d”,$table).sprintf(”%02d”,$board).”.pgn”;
            $handle = fopen($filename, “r”);
            $contents = fread($handle, 6024);
            fclose($handle);
          echo “<pre>”.$contents;
      }     
}
?>

As of this writing you can view but still can’t download any of the games. I’m sure this will be fixed soon but here is the Round 1 games if you are interested:-

Dresden Round 1 (Men) PGN

Viewed 2510 times by 809 viewers

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Related posts:-

Comments
MyAvatars 0.2

yo , dats kool

MyAvatars 0.2

[...] site still hasn’t fixed the broken links to download the games in PGN form. Just like Round 1 PGN, I had to “steal” Round 2 PGN too using the script I wrote yesterday. Click the above [...]

MyAvatars 0.2

[...] Download Round 1 Men [...]

Leave a comment

(required)

(required)