From 8d3e267a1c4f5f1d0e2ed99d33bb35d743242a80 Mon Sep 17 00:00:00 2001 From: NadimOsseiran <135474216+NadimOsseiran@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:54:36 +0100 Subject: [PATCH] Add perfType Argument Allows to select to type of games to be downloaded (blitz,classical,rapid). syntax --perfType classical, blitz,rapid (one or comma separated) --- download_games.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/download_games.py b/download_games.py index 71ce254..c801c9d 100644 --- a/download_games.py +++ b/download_games.py @@ -18,6 +18,9 @@ help="substantially reduce the number of logged messages") parser.add_argument("--max", metavar="MAX", default="60", help="max number of games") +parser.add_argument("--perfType", metavar="PERFTYPE", default="blitz,rapid,classical", + help="Game type in lichess : blitz, rapid or classical. Comma separated eg. 'classical " or "rapid,classical") + settings = parser.parse_args() logging.basicConfig(format="%(message)s", level=settings.loglevel, stream=sys.stdout)