Skip to main content

letterboxdpy

PyPI version Downloads format

Installation

pip install letterboxdpy

User Objects

from letterboxdpy import user
nick = user.User("nmcassa")
print(nick)
{
    "username": "nmcassa",
    "watchlist_length": "72",
    "favorites": [
        [
            "The Grand Budapest Hotel",
            "/film/the-grand-budapest-hotel/"
        ],
        [
            "The King of Comedy",
            "/film/the-king-of-comedy/"
        ],
        [
            "The Alpinist",
            "/film/the-alpinist/"
        ],
        [
            "The Graduate",
            "/film/the-graduate/"
        ]
    ],
    "stats": {
        "Films": "372",
        "This year": "97",
        "List": "1",
        "Following": "7",
        "Followers": "6"
    }
}

user_genre_info(user object)

from letterboxdpy import user
nick = user.User("nmcassa")
print(user.user_genre_info(nick))
{'action': 55, 'adventure': 101, 'animation': 95, 'comedy': 188, 'crime': 22, 'documentary': 16, 'drama': 94, 'family': 109, 'fantasy': 54, 'history': 5, 'horror': 27, 'music': 9, 'mystery': 30, 'romance': 29, 'science-fiction': 48, 'thriller': 43, 'tv-movie': 13, 'war': 4, 'western': 5}

user_following(user object) / user_followers(user object)

from letterboxdpy import user
nick = user.User("nmcassa")
print(user.user_following(nick))
print(user.user_followers(nick))
['ryanshubert', 'Sean Baker', '24framesofnick', 'ConnorEatsPants', 'IHE', 'karsten', 'jordynhf']
['ryanshubert', 'Crescendo House', 'Brendonyu668', 'Parker Bobbitt', 'jordynhf', 'Dan']

user_films_watched(user object)

from letterboxdpy import user
nick = user.User("nmcassa")
print(user.user_films_watched(nick))
...all of the users watched movies in a tuple formatted (movie title, movie url)...

user_reviews(user object)

from letterboxdpy import user
nick = user.User("nmcassa")
print(user.user_reviews(nick))
[{'movie': 'Beast', 'rating': ' ★½ ', 'date': '23 Aug 2022', 'review': 'Did not like it'}, {'movie': 'Men', 'rating': ' ★ ', 'date': '25 May 2022', 'review': 'What could he possibly be trying to say with this'}, {'movie': 'Nightcrawler', 'rating': ' ★★★ ', 'date': '04 May 2022', 'review': 'Jake is a pussy nerd loser in this'}, {'movie': 'The Graduate', 'rating': ' ★★★★ ', 'date': '30 Jan 2022', 'review': 'If only they didn’t play the same song like 20 times'}, {'movie': "I'm Thinking of Ending Things", 'rating': ' ★★★★ ', 'date': '14 Feb 2021', 'review': 'yeah i dont get it'}]

Movie Object

from letterboxdpy import movie
king = Movie("king kong")
print(king)
king = Movie("king kong", 2005)
print(king)
house = Movie("/film/the-house-2022-1/")
print(house)
{
    "title": "king-kong",
    "url": "https://letterboxd.com/film/king-kong/",
    "directors": [
        "Merian C. Cooper",
        "Ernest B. Schoedsack"
    ],
    "rating": "3.85 out of 5",
    "year": "1933",
    "genres": [
        "horror",
        "adventure",
        "fantasy"
    ]
}
{
    "title": "king-kong-2005",
    "url": "https://letterboxd.com/film/king-kong-2005/",
    "director": "Peter Jackson",
    "rating": "3.33 out of 5",
    "year": "2005",
    "genres": [
        "action",
        "adventure",
        "drama"
    ]
}
{
    "url": "https://letterboxd.com/film/the-house-2022-1/",
    "directors": [
        "Paloma Baeza",
        "Niki Lindroth von Bahr",
        "Emma De Swaef",
        "Marc James Roels"
    ],
    "rating": "3.54 out of 5",
    "year": "2022",
    "genres": [
        "fantasy",
        "horror",
        "drama",
        "comedy",
        "animation"
    ]
}

movie_details(movie object)

from letterboxdpy import movie
king = movie.Movie("king kong", 2005)
print(movie.movie_details(king))
{'Country': ['New Zealand', 'USA', 'Germany'], 'Studio': ['Universal Pictures', 'WingNut Films', 'Big Primate Pictures', 'MFPV Film'], 'Language': ['English']}

movie_description(movie object)

from letterboxdpy import movie
king = movie.Movie("king kong", 2005)
print(movie.movie_description(king))
In 1933 New York, an overly ambitious movie producer coerces his cast and hired ship crew to travel to mysterious Skull Island, where they encounter Kong, a giant ape who is immediately smitten with...

movie_popular_reviews(movie object)

from letterboxdpy import movie
king = movie.Movie("king kong" 2005)
print(movie.movie_popular_reviews(king))
[{'reviewer': 'BRAT', 'rating': ' ★★★½ ', 'review': 'naomi watts: bitch, it’s king kongking kong: yes, i’m king kongadrien brody: this is king kong?jack black: yes, miss king kong!!kyle chandler: and i’m kyle chandler :)'}, {'reviewer': 'josh lewis', 'rating': ' ★★★★ ', 'review': 'This review may contain spoilers. I can handle the truth.'}, {'reviewer': 'ashley 🥀', 'rating': ' ★½ ', 'review': 'To quote one of the funniest tweets I have ever seen: did King Kong really think he was gonna date that lady?'}, ...

List Object

from letterboxdpy import list
list = list.List("Horrorville", "The Official Top 25 Horror Films of 2022")
print(list)
{
    "title": "the-official-top-25-horror-films-of-2022",
    "author": "horrorville",
    "url": "https://letterboxd.com/horrorville/list/the-official-top-25-horror-films-of-2022/",
    "description": "To be updated monthly. It's ranked by average Letterboxd member rating. See the official top 50 of 2021 on Horrroville here. Eligibility rules: \u2022\u00a0Feature-length narrative films included only. \u2022\u00a0Shorts, documentaries, and TV are excluded. \u2022\u00a0Films must have their festival premiere in 2022 or their first national release in any country in 2022. \u2022\u00a0Films must have the horror genre tag on TMDb and Letterboxd. \u2022\u00a0There is a 1,000 minimum view threshold. Curated by Letterboxd Head of Platform Content Jack Moulton.",
    "filmCount": 25,
    "movies": [
        [
            "Nope",
            "/film/nope/"
        ],
        [
            "Pearl",
            "/film/pearl-2022/"
        ],
        [
            "Barbarian",
            "/film/barbarian-2022/"
        ],
        [
            "Mad God",
            "/film/mad-god/"
        ],
        [
            "Bones and All",
            "/film/bones-and-all/"
        ],
        [
            "Prey",
            "/film/prey-2022/"
        ],
        [
            "Bodies Bodies Bodies",
            "/film/bodies-bodies-bodies/"
        ],
        [
            "You Won't Be Alone",
            "/film/you-wont-be-alone/"
        ],
        [
            "X",
            "/film/x-2022/"
        ],
        [
            "The House",
            "/film/the-house-2022-1/"
        ],
        [
            "Fresh",
            "/film/fresh-2022/"
        ],
        [
            "Final Cut",
            "/film/final-cut-2022/"
        ],
        [
            "Saloum",
            "/film/saloum/"
        ],
        [
            "Bhoothakaalam",
            "/film/bhoothakaalam/"
        ],
        [
            "The Black Phone",
            "/film/the-black-phone/"
        ],
        [
            "Nanny",
            "/film/nanny-2022/"
        ],
        [
            "15 Ways to Kill Your Neighbour",
            "/film/15-ways-to-kill-your-neighbour/"
        ],
        [
            "Resurrection",
            "/film/resurrection-2022/"
        ],
        [
            "Watcher",
            "/film/watcher/"
        ],
        [
            "Scream",
            "/film/scream-2022/"
        ],
        [
            "Crimes of the Future",
            "/film/crimes-of-the-future-2022/"
        ],
        [
            "Speak No Evil",
            "/film/speak-no-evil-2022/"
        ],
        [
            "Flux Gourmet",
            "/film/flux-gourmet/"
        ],
        [
            "Satan's Slaves 2: Communion",
            "/film/satans-slaves-2-communion/"
        ],
        [
            "Medusa",
            "/film/medusa-2021/"
        ]
    ]
}

list_tags(list object)

from letterboxdpy import list
a = list.List("Horrorville", "The Official Top 25 Horror Films of 2022")
print(list.list_tags(a))
['official', 'horror', 'letterboxd official', 'letterboxd', '2022', 'topprofile', 'top 25']

Metadata

Release files for letterboxdpy 3

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

Source distribution (sdist)

Source distribution for letterboxdpy 3
File Size Uploaded Provenance Actions
letterboxdpy-3.tar.gz 8.5 kB Without provenance Details for letterboxdpy-3.tar.gz

Built distribution (wheel)

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

Total release size: 18.3 kB

Release files / letterboxdpy-3.tar.gz

Download URL letterboxdpy-3.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ab2a4638147addb75da149cccca7f42aceffdd98077fc61b913444ea8135c5e
BLAKE2b-256 checksum
How to use checksums
f4d3a7518b3e61b1f95e3eb006d4d346a54e3eeeccb8dd1191313f1ff50b4270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release files / letterboxdpy-3-py3-none-any.whl

Download URL letterboxdpy-3-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d6d2002746cbb5e30fa49ca659173699d3c97fe7dfa95c37f477da836031d99
BLAKE2b-256 checksum
How to use checksums
a8119dec6688e246cd252c6db02c37f11fdaebbe7f43b746fc2ed3f8daf2a988
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Security for letterboxdpy 3

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

3 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