Closed Uglemat closed 10 years ago
Just a sidenote: you should use the domain en.lichess.org
instead of lichess.org
to avoid the redirect, and cut the number of requests by two. Now I'm investigating the issue.
Worth noting that the program httpie
gets the entire output. However curl
and wget
get the truncated one.
$ wget http://en.lichess.org/YTguq37D/pgn -SqO -
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 15 Jul 2014 21:47:43 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 1750
Connection: keep-alive
Vary: Accept-Encoding
Content-Disposition: attachment; filename=lichess_pgn_2014.07.13_FinkelFrand_vs_Daaaaari.YTguq37D.pgn
X-UA-Compatible: IE=Edge,chrome=1
[Event "Rated game"]
[Site "http://lichess.org/YTguq37D"]
[Date "2014.07.13"]
[White "FinkelFrand"]
[Black "Daaaaari"]
[Result "1-0"]
[WhiteElo "1622"]
[BlackElo "1506"]
[PlyCount "29"]
[Variant "Standard"]
[TimeControl "600+5"]
[ECO "A09"]
[Opening "Reti Opening, Advance Variation"]
[WhiteClock ":1:22"]
[BlackClock ":0:0"]
[Annotator "lichess.org"]
1. Nf3 d5 2. c4 d4 { Reti Opening, Advance Variation } 3. b3 c5 4. Bb2 Nc6 5. Na3 e5 6. d3 Nf6 7. e3 Bg4 8. Be2 Bxf3?! { (-0.44 → 0.06) Inaccuracy. The best move was Bd7. } (8... Bd7 9. O-O Bd6 10. Nb5 Be7 11. b4 a6 12. bxc5 dxe3 13. Nd6+ Bxd6 14. cxd6 exf2+ 15. Rxf2 Ng4 16. c5) 9. Bxf3 h5?! { (0.08 → 0.60) Inaccuracy. The best move was Be7. } (9... Be7 10. O-O O-O 11. Bxc6 bxc6 12. Nc2 Rb8 13. Re1 Re8 14. h3 Qd6 15. Qf3 Nd7 16. Rac1) 10. O-O g5?! { (0.61 → 1.47) Inaccuracy. The best move was Be7. } (10... Be7 11. Nc2 O-O 12. Bxh5 Nxh5 13. Qxh5 g6 14. Qh3 Bf6 15. Rae1 a6 16. Qf3 Rc8 17. Ba3 b6 18. exd4) 11. Nc2 g4?! { (1.47 → 2.45) Inaccuracy. The best move was Be7. } (11... Be7 12. Re1 O-O 13. Qd2 Nd7 14. Bxh5 a6 15. Bf3 Rb8) 12. Be2? { (2.45 → 0.46) Mistake. The best move was Bxc6+. } (12. Bxc6+ bxc6 13. f4 exf4 14. Rxf4 Bg7 15. exd4 O-O 16. dxc5 Nd7 17. Bxg7 Kxg7 18. Rf5 Rh8 19. Qd2 f6) 12... Rg8 13. exd4 cxd4?! { (0.42 → 1.15) Inaccuracy. The best move was exd4. } (13... exd4 14. Re1 Be7 15. b4 cxb4 16. Bf1 h4 17. Qe2 Kf8 18. Bxd4 Nxd4 19. Nxd4 Qxd4 20. Qxe7+ Kg7 21. g3) 14. Re1?! { (1.15 → 0.21) Inaccuracy. The best move was f4. } (14. f4 Bd6 15. Qe1 Qc7 16. Qh4 Be7 17. g3 O-O-O 18. Rae1 Qb6) 14... h4?! { (0.21 → 0.75) Inaccuracy. The best move was Qc7. } (14... Qc7 15. a3 h4 16. b4 a6 17. f4 gxf3 18. Bxf3 h3 19. Nxd4 Nxd4 20. Bxd4) 15. g3 { Black forfei
The truncated content seems to be exactly 1750 characters, which is what the Content-Length HTTP header also says. I'm guessing that's related to the cause. When I used httpie it didn't seem to list the Content-Length header.
Using the --ignore-length
option for wget
makes it download the whole thing
Good catch. I'm fixing the content length on the server.
Got it fixed, will deploy tonight. Also I'll be adding a download of all games as a single file PGN. Very soon.
There you go @SmartViking. The download link on your user page now delivers a fat PGN file, that scid should be able to import.
Works great, thanks :)
I made a script to download all my games and put it into a single PGN file to use them in the scid program, and I found out that some of PGN files seems to end prematurely. Of the ~900 games I downloaded, only about ~700 of them was imported by scid successfully, so it seems like it's a frequent problem.
Here are two URLs with that problem:
And here's what I get:
Both of them ends prematurely.