<commit_before>Lichess game downloader
------------------------

  [![Build Status](https://travis-ci.org/s-ted/liPGN.svg)](https://travis-ci.org/s-ted/liPGN)


This program uses the lichess REST API to retrieve all the games of a
user and transform them into a big PGN file that you can then import
into your favourite game analysis tool (ie. scid)

### Usage

```
java -jar liPGN.jar [options]
```

For instance, if I want to prepare against Thibault for my next correspondance game:

```
java -jar liPGN.jar -u thibault -p unlimited
```


And if I want to prep for my next standard game against <NAME>:

```
java -jar liPGN.jar -u Fins -p classical --speed classical,blitz
```

And if I want to challenge JannLee:
```
java -jar liPGN.jar -u JannLee -p crazyHouse --speed classical,blitz
```

### Options
```
  -q, --quiet                                            Don't output messages on console
  -C, --casual                                           Also handle casual games
  -v, --variant <v1,v2...>   standard                    Handle games for the given variant
  (standard/chess960/kinfOfTheHill/threeCheck/racingKings/horde/crazyHouse/antichess/atomic)
  -p, --speed <s1,s2...>                                 Handle games for the given speed (bullet/blitz/classical/unlimited). By default: all.
  -U, --url <URL>            http://en.lichess.org/api/  URL of the API
  -s, --store <store>        plocal:db                   The store to use for keeping the data (use 'memory:tmp' for a transient run)<commit_msg>Fixes bad option for variant.<commit_after>Lichess game downloader
------------------------

  [![Build Status](https://travis-ci.org/s-ted/liPGN.svg)](https://travis-ci.org/s-ted/liPGN)


This program uses the lichess REST API to retrieve all the games of a
user and transform them into a big PGN file that you can then import
into your favourite game analysis tool (ie. scid)

### Usage

```
java -jar liPGN.jar [options]
```

For instance, if I want to prepare against Thibault for my next correspondance game:

```
java -jar liPGN.jar -u thibault -p unlimited
```


And if I want to prep for my next standard game against <NAME>:

```
java -jar liPGN.jar -u Fins --variant standard --speed classical,blitz
```

And if I want to challenge JannLee:
```
java -jar liPGN.jar -u JannLee --variant crazyHouse --speed classical,blitz
```

### Options
```
  -q, --quiet                                            Don't output messages on console
  -C, --casual                                           Also handle casual games
  -v, --variant <v1,v2...>   standard                    Handle games for the given variant
  (standard/chess960/kinfOfTheHill/threeCheck/racingKings/horde/crazyHouse/antichess/atomic)
  -p, --speed <s1,s2...>                                 Handle games for the given speed (bullet/blitz/classical/unlimited). By default: all.
  -U, --url <URL>            http://en.lichess.org/api/  URL of the API
  -s, --store <store>        plocal:db                   The store to use for keeping the data (use 'memory:tmp' for a transient run)
{'fraction_non_alphanumeric': 0.12350081037277147, 'fraction_numerical': 0.00453808752025932, 'mean_word_length': 2.1618852459016393, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5336743', 'n_tokens_mistral': 958, 'n_tokens_neox': 898, 'n_words': 341}