lichess.org
Donate

Export games does not have clock information in PGN files

Hi,
When I use the export games (PGN) from the profile page the downloaded file does not have clock information.
Does Lichess record the clock information( Thinking time per move?) in PGN files? is there any setting to record it?
What I get - 1. d4 Nf6 2. c4 e6
What I am looking for :1. d4 {[%clk 1:40:30]} Nf6 {[%clk 1:40:30]} 2. c4 {[%clk 1:40:30]} e6

Thanks
Nano
1) When I try to download using the Link directly I get error - "Failed network Error" - it could be due to huge size.
2) When I try to download using command line I get -
"Read error at byte 1137 (Success).Retrying."

~/chess$ wget lichess.org/api/games/user/kinglovesqueens?perfType=rapid&clocks=true
[1] 31
~/chess$ --2020-01-09 21:01:16-- lichess.org/api/games/user/kinglovesqueens?perfType=rapid
Resolving lichess.org (lichess.org)... 37.187.205.99, 2001:41d0:303:c473::1
Connecting to lichess.org (lichess.org)|37.187.205.99|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: lichess.org/api/games/user/kinglovesqueens?perfType=rapid [following]
--2020-01-09 21:01:17-- lichess.org/api/games/user/kinglovesqueens?perfType=rapid
Connecting to lichess.org (lichess.org)|37.187.205.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-chess-pgn]
Saving to: ‘kinglovesqueens?perfType=rapid’

kinglovesqueens?perfType=rapi [ <=> ] 1.11K 21.5 B/s in 53s

2020-01-09 21:42:46 (19.6 B/s) - Read error at byte 1137 (Success).Retrying.
I don't know the details of your problem, however same API has a streaming version. I built a game search on top of this, which reads the games one by one.

If you don't make any filtering, it just spits out your games and when you stop the stream, you can download the games so far.

fbserv.herokuapp.com/games.html?username=kinglovesqueens&autocreatecode=true&autostart=true

I tried this link and there seems to be no problem for the stream at least with the first couple of hunderd games. The speed is 20 games / sec, but you can provide an own token, then it is 50 games / sec. The token needs no special scope.
@sefulesefarka
Thanks so much , really appreciate your answer. I have two questions:
Question 1:
I tried out the link that you have posted, it gives me error ( the search is fine , and download starts fine)
fbserv.herokuapp.com/games.html?username=kinglovesqueens&autocreatecode=true&autostart=true
"fbserv.herokuapp.com says
"Error. Something went wrong with downloading games.""
Downloading games, please wait ... [ batch 5 of 19 ]
Error Files:
drive.google.com/file/d/1SVJ2mR2N9tXwiJsxTiTnfHLnUUjG-WL2/view?usp=sharing
total games 5473 found 5472 searching 4/27/2018, 2:59:23 AM elapsed 250.802 games/sec 21.822
avg rating: 1446.1193347953217

Question 2:
Where does it download the files? ( does it download to whatever my webbrowser download settings are ?)
1) I can reproduce this. The problem is too many requests ( status 429 ).

The reason is that once this is a custom search, you have to download the PGNs by game id. The API lets you download 300 games in one batch, this is why you see the batch counter. There were simply too many batches and lichess rate limit was surpassed for this kind of API. The purpose here is game search and downloading selected games, so if you need to download very large number of games, then use the normal API ( of course filtering options of that are limited ). If the normal API still reports an error, then this is up to lichess developers.

2) Download will be as normal according to your browser settings. I recommend that you make your browser prompt for a file name on downloads, so it is clear where the file is saved. Otherwise it is just saved in the default download folder whatever this may be under a file name offered by the app.

This topic has been archived and can no longer be replied to.