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) # the year is optional
>>> p.imdb_score()
8.7
>>> p.genres(2)
['Action', 'Sci-Fi']

Available Datapoints

Methods

name description arguments (default)
genres Return the genres int(3) The number of genres returned
runtime Return the runtime
cast Return the cast int(5) The number of cast members returned
directors Return the directors int(3) The number of directors returned
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

Properties

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-3.0.7.tar.gz (5.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: phylm-3.0.7.tar.gz
  • Upload date:
  • Size: 5.2 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-3.0.7.tar.gz
Algorithm Hash digest
SHA256 273c443f95c1f7010e0d03955fe31f9e23e96dbc2e34eee81731a543e398f327
MD5 0ca9f93e936574d057498f1e47385603
BLAKE2b-256 9dbb97adb9e2bb0f13020823d579e35d66a3a24d74b54c7ec49c70eab3e832c7

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