Originally posted by Phlabibit
Next you can go to your game list and email your games home... I think that is PGN and FEN info, but I must admit I've never used the function.
I decided to try this idea out. I got WinBoard, which is OK. Not perfect, but OK. I'll have to check out some of the others mentioned too. The problem comes when trying to get all your PGNs from current games. It turns out that the "[so-and-so]'s Public Games" page has FENs from your games (if you show the miniboards) so that's one place you could grab them from. I agree, though, that it's nicer to have the whole game PGNs so you can back them up.
I tried the trick of mailing the games to myself, but there are at least two problems with that. First, that page allows you to select ALL games or ONLY COMPLETED games. I want ONLY CURRENT games, but that's not an option. The other problem is that the result is an HTML page with the games in a really horribly bad format. I considered writing some kind of script to clean them up. I know that gregoftheweb has the pgn cleaner, but that's good for one at a time and requires a lot of manual intervention.
I came up with a different solution. I wrote a Perl script (Perl is extremely portable) that connects to RHP, gets my current game list from the "prn's public games" page with no miniboards and "In Progress" games only. It then parses out the game IDs and gets the PGN cut'n'paste page for each of those games, splits off the junk before and after the PGN, leaving the PGN for each game and writing that to a file. The result is a single file with the PGNs for all of my games. So far this seems to work nicely.
I tend to keep the number of games I am playing at any given time to around 12-20 so they easily fit onto a single page. I suppose I ought to generalize the routine so it will get all the games even if they require multiple pages, but IIRC the RHP routine normally puts 30 on a page and doing this for offline analysis is probably not all that practical for huge numbers of games anyway. I can't really see DustnRogers or Cheshire Cat figuring out 500 moves offline and then connecting to RHP to make them.
Is there any demand for my script? Should I post it somewhere for anyone to use? If one or two people want it I can easily send it individually. If noone wants it, that's fine. It works OK for me.
It's really pretty short. It should work as is for up to 30 in progress games. I'd have to modify it for more, but that wouldn't really be all that hard to do. I'm not sure it's worth doing though.