Skip to main content

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')
assert link == mp.get_poster(id='tt0088847')  # can also be found using movie's id
assert link == mp.get_poster(id=88847)
assert 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 an 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 an 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.6.tar.gz (15.1 kB view hashes)

Uploaded Source

Built Distribution

movieposters-0.0.6-py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 3

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