Skip to main content

Aggregrate useful data about films

Project description

PhYlm

Film data aggregation.

Motivation

When deciding which film to watch next, it can be helpful to have some key datapoints at your fingertips, for example, the genre, the cast, the Metacritic score and, perhaps most importantly, the runtime. This package provides a Phylm class to gather information from various sources for a given film.

Installation

pip install phylm

Usage

>>> from phylm import Phylm
>>> p = Phylm('The Matrix', 1999)
>>> p.imdb_score()
8.7

Available Datapoints

Methods

name description
genres Return the genres
runtime Return the runtime
cast Return the cast
directors Return the directors
plot Return the plot
imdb_title Return the title from IMDb
imdb_year Return the release year from IMDb
imdb_score Return the IMDb score
imdb_low_confidence Return the IMDb low confidence flag
mtc_title Return the title from Metacritic
mtc_year Return the release year from Metacritic
mtc_score Return the Metacritic score
mtc_low_confidence Return the Metacritic low confidence flag
rt_title Return the title from Rotten Tomatoes
rt_year Return the release year from Rotten Tomatoes
rt_tomato_score Return the Rotten Tomatoes Tomatometer score
rt_audience_score Return the Rotten Tomatoes Audience score
rt_low_confidence Return the Rotten Tomatoes low confidence flag

Attributes

name description
title Return the given title
year Return the given year

Low Confidence

If the package can't find an exact match by title in one of the sources (IMDb, Metacritic, Rotten Tomatoes) then the first result from the search results will be used. In these instances the {source}_low_confidence flag will be set to True. Use the {source}_title and {source}_year values to cross reference with the given title to decide whether this is a worthwhile result or not.

Limitations

This package uses web scraping for the Rotten Tomatoes and Metacritic results and is therefore at the mercy of changes made to those webpages. Take the returned values with a healthy pinch of salt.

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

phylm-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file phylm-1.0.0.tar.gz.

File metadata

  • Download URL: phylm-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for phylm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d403f14d91cbe7ac499aadb94eadc2f71e15708422e43928f98b69ba93d050ad
MD5 b0336b002d4402d7e6e359c197f433a5
BLAKE2b-256 8b0d026a22474f344ca34712af56b5107bf474d31aee815c7be31d9aff8735ac

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