A letterboxd webscraper
Project description
letterboxdpy
Installation
pip install letterboxdpy
Code Example
from letterboxdpy import user
nick = user.User("nmcassa")
print(nick.jsonify())
User Object JSON
{
"username": "nmcassa",
"favorites": [
"The Grand Budapest Hotel",
"The King of Comedy",
"The Alpinist",
"The Graduate"
],
"stats": {
"Films": "342",
"This year": "69",
"List": "1",
"Following": "6",
"Followers": "5"
}
}
** Code Example**
nick = User("nmcassa")
print(nick.user_genre_info())
Output
{'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}
Code Example
from letterboxdpy import movie
king = movie.Movie("king kong")
print(king.jsonify())
king = movie.Movie("king kong", 2005)
print(king.jsonify())
Movie Object JSON
{
"title": "king-kong",
"director": [
"Merian C. Cooper",
"Ernest B. Schoedsack"
],
"rating": "3.85 out of 5",
"description": "A film crew discovers the \"eighth wonder of the world,\" a giant prehistoric ape, and brings him back to New York, where he wreaks havoc.",
"year": "1933",
"genres": [
"horror",
"adventure",
"fantasy"
]
}
{
"title": "king-kong-2005",
"director": "Peter Jackson",
"rating": "3.32 out of 5",
"description": "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...",
"year": "2005",
"genres": [
"action",
"adventure",
"drama"
]
}
Code Example
king = Movie("king kong", 2005)
print(king.movie_details())
Output
{'Country': ['New Zealand', 'USA', 'Germany'], 'Studio': ['Universal Pictures', 'WingNut Films', 'Big Primate Pictures', 'MFPV Film'], 'Language': ['English']}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
letterboxdpy-1.8.tar.gz
(235.0 kB
view hashes)
Built Distribution
Close
Hashes for letterboxdpy-1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693eb2f72f10d71e709edd2b9143e6678cae6d5c46f29b4a0c7617b4f34d44dd |
|
MD5 | c50abdcce1c831468f89b6af4500665e |
|
BLAKE2b-256 | 38b902b7536bc1e7e80fe22bd3c0b155f74a7fbc958b20a207dccae90d25cdc3 |