Free online Chess game. Play Chess now in a clean interface. No registration, no ads, no plugin required. Play Chess with computer, friends or random opponents.
English
Play Games Tournament People Teams Forum
0 players
Sign in
Color

lichess.org

  1. Forum
  2. Lichess Feedback
  3. pgndownloads

bacchusxxxxx Jul 22, 2012 9:57 PM #1

Is there any way to download all the games (by all players) that have been played on the lichess server?

thibault Jul 22, 2012 10:02 PM #2

Not at the moment. It's 3,2 million games. What would you do with that?

bacchusxxxxx Jul 22, 2012 10:16 PM #3

I would put them in my scid chess databases, i have about 20 million games in them, being something of a compulsive collecter! but anyway thank you, lichess is great

darewing Jul 26, 2012 10:25 PM #4

It would be nice to have all that games in a database, but only if it would be available to all lichess players.
Perhaps a database dump every month (that would probably mean about 50Mb in Games)
And yes, scid would be nice or just a pgn dump compressed./ Having a single button to have mailed your own games would be nice, too.

sega Aug 18, 2012 3:32 PM #5

I only found 2 posts on this subject and from what I understand there is still no way to download your own games in a PGN file?
the only thing I see at the top of my profile is the Export games button, what am I supposed to do with the CSV file? I open it in notepad and it doesnt look like it would translate into PGN so am I supposed to see my games with this? If not what is it for?

Mephostophilis Aug 18, 2012 5:33 PM #6

Yes the CSV file is a comma-separated values text resource.

It includes the PGN viewer links to see your game on Lichess.

Like, currently, my most recent game looks like this on the site in PGN:

http://lichess.org//d17uoaui/pgn

Ahh, crap.
I see thibault changed it from the inline-browser view from the DOWNLOAD-THIS-FILE-NOW view :).

Anyway it's the same link you get while replay and analyzing your games, where it gives you the "View PGN" link at the bottom.

someonesomewhere Aug 18, 2012 9:14 PM #7

I guess you could iteratively load http://lichess.org/games/all?page=PAGE, advancing page by one each time, and parse the anchors until you got a list of all of the game IDs.

After you got all of the game IDs, to download all of the games would be a relatively simple task; you would simply prepend "http://lichess.org/" and append "/pgn" to each game ID, and then save the response to a database.

someonesomewhere Aug 18, 2012 9:23 PM #8

Oops...it appears that thibault has placed a cap on the number of games you can call up from that page...and several other pages, preventing you from retrieving all of the game IDs.

The only other way I can think of to get the game IDs would be to get the top 1960 players from the "people" page (maximum thibault has allowed), and "export games" for each one of them. This still would not get you all of the games but it would get you many of them, since the top players are the ones who play the most.

Reply to this topic

Cancel