Import Letterboxd movie list (diary or movie list) into trakt.tv. Tested with python 3.10.
$ python py-trakt-letterboxd-import.py diary.csv
$ python py-trakt-letterboxd-import.py --watched watched.csv
Note for the watched.csv: If you choose the watched.csv file every movie marked as watched in letterboxd will be imported. However, since there is no date given at which you have watched the movies (like for the diary), all of them will be imported for the same day and time (time of import) in trakt.tv. Furthermore in some rare cases there is no year given/set for some movies in the watched.csv file and therefore the import stops with an error unless you manually set it.
There is the possibility to optionally use an API for retrieving the imdB id for each movie. This can help if some of the movies have a different title at letterboxd than on imdb or trakt. However, in most cases this is not needed and the import will take longer when using the API.
If you decide to use it set CHECK_IMDB_ID = True
and specify an API Url. Typical APIs to use:
Some code-parts were taken from https://github.com/akampjes/trakt-list-import !