Skip to main content

A letterboxd webscraper

Project description

letterboxdpy

PyPI version Downloads format

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.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.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


Download files

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

Source Distribution

letterboxdpy-2.tar.gz (248.9 kB view details)

Uploaded Source

Built Distribution

letterboxdpy-2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file letterboxdpy-2.tar.gz.

File metadata

  • Download URL: letterboxdpy-2.tar.gz
  • Upload date:
  • Size: 248.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for letterboxdpy-2.tar.gz
Algorithm Hash digest
SHA256 4471dfe122bb8e26a09c7038eab89cad518b7cd7522f9cefed73aaecee17b588
MD5 b03de25cb1003d5b7f967aeab12bd1ca
BLAKE2b-256 70754a781f1b6cbf524750543e82c7c1a6f98614c253adacc72b4a19cf8655e4

See more details on using hashes here.

File details

Details for the file letterboxdpy-2-py3-none-any.whl.

File metadata

  • Download URL: letterboxdpy-2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for letterboxdpy-2-py3-none-any.whl
Algorithm Hash digest
SHA256 45651f8b9c1c34ff2891c82b52f72ee64f938190b1d743688de15205eed61a8b
MD5 464b919ac03f54c144577640b449e2df
BLAKE2b-256 7878bb0f08c28afa27364d7c080cc78cb025fac92ffc4dbbb432475098ba6b9e

See more details on using hashes here.

Supported by

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