- Blind mode tutorial
lichess.org
Donate

Download raw PGN from Lichess study

Use case. (father writing from his daughter account)

After a tournament, my kids enter their games in a lichess study to share with their teacher.
They enjoy using Lichess analysis to understand their games.
Problem:when they want to export a PGN Lichess adds lots of comments in brackets which create havoc in Fritz.
A headache for the teacher.

Question:

Would it be possible to export or download RAW PGNs from Lichess study? aka without the comments.

Thank you, this would be a very useful feature.

Note:
We tried to create games inLichessStudy without Computer analysis. Then the PGN is "clean", can be workaroundfor the future.
Problem:As soon as we do computer analysis, the PGN becomes crowded again with comments.

A workaround would be to be able to duplicate a chapter. Then we would have without analysis , and copy the chapter to have a separate one with analysis.

Thank you for your answer.
KR
Mathieu, father of Eloiseand Marc.
Chessbase (and Fritz) have a feature to remove all comments from a game with a single shortcut (Shift+Ctrl+Y for me here). Or you can right click and get the appropriate option. Also works for a complete database at once.

I would support this feature, though... removing the comments is something I use every single time in a similar way, and it's kind of annoying.
>Would it be possible to export or download RAW PGNs from Lichess study? aka without the comments.

It's possible with the API. See lichess.org/api#tag/Studies/operation/studyAllChaptersPgn

Switch to Share & export tab under the board. Right-click on Study PGN or Chapter PGN button (depending on whether you want all the chapters or just one). Click "Copy link address" or "Copy link location" in case of Firefox. Paste the URL in the new tab and add the following at the end and hit Enter:

?comments=false&variations=false&clocks=false

So ? indicates a query string, which is a parameter=value delimited by & if you pass multiple parameters.

This will remove the comments, variations and clock times. If you want to keep the variations, you can remove the &variations=false from the string above.
@eloise0107 You can create new chapters from existing ones, then use the feature of "Clear annotations" from the chapter edit form.

Alternately, comments are just text between curly brackets. You can take a text editor like Notepad++ and search and replace with a regular expression: \{.*?\}

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