Skip to main content

Letterboxd Stats

Get information about your Letterboxd activity.

Search for actors/directors, analyze your diary/watchlist/rating, check which film you have seen for a particular person. All in your terminal.

Requirements

  • Python >= 3.8
  • A TMDb API key: to retrieve all the general information for movies/people
  • A Letterboxd account: to export your Letterboxd activity through web-scraping.

Installation

Just run:

pip3 install letterboxd_stats

Configuration

It is required to create a config.toml. You can create it in the default config folder (for example, .config/letterboxd_stats in Linux) or specify your custom folder with the -c command. For each platform, default config folder follows the structure of the platformdirs package.

# Where you want the .csv file of your Letterboxd activity to be saved.
root_folder = "~/Documents/letterboxd_stats/"

[CLI]
# The size of the ASCII art poster printed in your terminal when you check the details of a movie.
# Set to 0 to disable
poster_columns = 180
# Set ascending order for sorting of tables
ascending = false

[TMDB]
api_key = "YOUR_TMDB_API_KEY"
# When you get your lists (-L options), also get all the runtimes from TMDB
# and compute the mean of the ratings weighted on the durations. This slows the process.
get_list_runtimes = false


[Letterboxd]
username = "your-username"
password = "your-password"

Options

options:
  -h, --help            show this help message and exit
  -s SEARCH, --search SEARCH
                        Search for a director
  -S SEARCH_FILM, --search-film SEARCH_FILM
                        Search for a film.
  -d, --download        Download letterboxd data from your account
  -W, --watchlist       show watchlist
  -D, --diary           show diary
  -R, --ratings         show ratings
  -L, --lists           show lists
  -l LIMIT, --limit LIMIT
                        limit the number of items of your wishlist/diary
  -c CONFIG_FOLDER, --config_folder CONFIG_FOLDER
                        Specify the folder of your config.toml file

To do

Note: this is something I do during my free time. Therefore, I can't promise consistent support for this project.

  • Use web-scraping to add film to diary/wishlist

  • Check followers' activity.

Metadata

Release files for letterboxd-stats 0.2.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for letterboxd-stats 0.2.18
File Size Uploaded Provenance Actions
letterboxd_stats-0.2.18.tar.gz 13.7 kB Without provenance Details for letterboxd_stats-0.2.18.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for letterboxd-stats 0.2.18
File Interpreter ABI Platform Actions
letterboxd_stats-0.2.18-py3-none-any.whl Python 3 none any Details for letterboxd_stats-0.2.18-py3-none-any.whl

Total release size: 28.6 kB

Release files / letterboxd_stats-0.2.18.tar.gz

Download URL letterboxd_stats-0.2.18.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3076757391fad95906e7a994a270f8193a5fabf1d2f92f5a471861e6b3d3d8ab
BLAKE2b-256 checksum
How to use checksums
f10fc0f803a7c66174c65fdabbba7cf4ccd81d2a99592910699d09f658525ba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / letterboxd_stats-0.2.18-py3-none-any.whl

Download URL letterboxd_stats-0.2.18-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
addd45a26862a082c6d920140b9f56681c1297d4414045368db4e737fdd90e1e
BLAKE2b-256 checksum
How to use checksums
b4717ae9e53cad2742e8a20cd672f36d40757b89aaa4b7d91663569da1cdc55c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for letterboxd-stats 0.2.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.18 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page