Skip to main content

Get information about your Letterboxd activity.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

letterboxd_stats-0.2.18.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

letterboxd_stats-0.2.18-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file letterboxd_stats-0.2.18.tar.gz.

File metadata

  • Download URL: letterboxd_stats-0.2.18.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for letterboxd_stats-0.2.18.tar.gz
Algorithm Hash digest
SHA256 3076757391fad95906e7a994a270f8193a5fabf1d2f92f5a471861e6b3d3d8ab
MD5 db944bf57c2f5d9dac1f5ab93fdf926d
BLAKE2b-256 f10fc0f803a7c66174c65fdabbba7cf4ccd81d2a99592910699d09f658525ba5

See more details on using hashes here.

File details

Details for the file letterboxd_stats-0.2.18-py3-none-any.whl.

File metadata

File hashes

Hashes for letterboxd_stats-0.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 addd45a26862a082c6d920140b9f56681c1297d4414045368db4e737fdd90e1e
MD5 ce0cb38c1a76036b08b4f4ca125b008e
BLAKE2b-256 b4717ae9e53cad2742e8a20cd672f36d40757b89aaa4b7d91663569da1cdc55c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page