user7726: I'd like to be able to automate downloading specific games that have been played on Lichess. Is there any software available that, if given useful information such as the Lichess usernames, colours, time control and (approximate) time of the game will download the game in pgn format? Command line please - ideally it will also flag an error if it fails to find exactly one match.
I'm running Linux, but as I expect anything that might exist will be in something like python I don't think that is a big issue.

user8154: Lichess has an API which can also be used to download games. For example:
https://lichess.org/api/games/user/{username}?max=3&color=white

This will download 3 most recent games played by {username} with the white pieces.
You can find the docs for this operation (and others) here:
https://lichess.org/api#operation/apiGamesUser
The introduction page lists some clients including one for Python:
https://lichess.org/api#section/Introduction

7726: <p>I'd like to be able to automate downloading specific games that have been played on Lichess. Is there any software available that, if given useful information such as the Lichess usernames, colours, time control and (approximate) time of the game will download the game in pgn format? Command line please - ideally it will also flag an error if it fails to find exactly one match.</p>
<p>I'm running Linux, but as I expect anything that might exist will be in something like python I don't think that is a big issue.</p>
 8154: <p>Lichess has an API which can also be used to download games. For example:</p>
<pre><code>https://lichess.org/api/games/user/{username}?max=3&amp;color=white
</code></pre>
<p>This will download 3 most recent games played by <code>{username}</code> with the white pieces.</p>
<p>You can find the docs for this operation (and others) here:</p>
<p><a href="https://lichess.org/api#operation/apiGamesUser" rel="noreferrer">https://lichess.org/api#operation/apiGamesUser</a></p>
<p>The introduction page lists some clients including one for Python:</p>
<p><a href="https://lichess.org/api#section/Introduction" rel="noreferrer">https://lichess.org/api#section/Introduction</a></p>
