Phylm
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")
>>> p.load_source("imdb")
>>> p.imdb.year
1999
>>> p.imdb.rating
8.7
phylm
also provides some tools around movie search results:
>>> from phylm.tools import search_movies
>>> search_movies("the matrix")
[{
'title': 'The Matrix',
'kind': 'movie',
'year': 1999,
'cover url': 'https://some-url.com',
'imdb_id': '0133093',
}, {
'title': 'The Matrix Reloaded',
'kind': 'movie',
'year': 2003,
'cover url': 'https://some-url.com',
'imdb_id': '0234215',
}, {
...
Help
See the documentation for more details.
Licence
MIT
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
phylm-4.1.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
phylm-4.1.0-py3-none-any.whl
(10.6 kB
view hashes)