A simple Python package to get the link a movie's poster given its title.
Project description
movieposters
A simple Python package to get the link a movie's poster given its title.
Installation
Installation has been made easy with PyPI. Depending on your system, you should either run
pip install movieposters
or
pip3 install movieposters
to install movieposters.
How to use
See the example below:
>>> import movieposters as mp
>>> link = mp.get_poster(title='breakfast club')
>>> link == mp.get_poster(id='tt0088847') # can also be found using movie's id
True
>>> link == mp.get_poster(id=88847)
True
>>> print(link)
'https://m.media-amazon.com/images/M/MV5BOTM5N2ZmZTMtNjlmOS00YzlkLTk3YjEtNTU1ZmQ5OTdhODZhXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_UX182_CR0,0,182,268_AL_.jpg'
Movies not on IMDb
If movieposters is unable to find the title on IMDb a mp.errors.MovieNotFound
exception will be raised.
Movies without posters
If movieposters is able to find the title on IMDb but can't find its poster a mp.errors.PosterNotFound
exception will be raised.
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
movieposters-0.0.5.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for movieposters-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00dd3c509bb63d1efaedc4485ab59fc92eb10ec37a56c24a13f2a3160959f29b |
|
MD5 | 78ab05a008676aacf8e7ff3826bf0adb |
|
BLAKE2b-256 | 3a773d3e11ec31c70060795f0ba3a844b4638f655ea1e1028b5601c5e5b24e47 |