PyMovieI
PyMovieI is a Python package which has a PyMovieInfo library for fetching movie informations and poster it works on web scarping and it fetches the data from Wikipedia.
Installation
Use the package manager pip to install PyMovieI.
pip install PyMovieI
Usage
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Movie_Name') # Create Objects of 'PyMovieInfo'
getPoster()
getPoster(name=None,path="") Method 'downloads' Movie Poster and you can rename it as name argumnet passed in method and save it to specific location by providing location as argument in path.
Examples :
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Create Objects of 'PyMovieInfo'
MovieObj.getPoster() #it will download poster in current location and save with the name available on wikipedida(from where data has been fecthed)
MovieObj.getPoster("My Movie") # it will download poster as My_Movie.jpg or My_Movie.png
MovieObj.getPoster(path="D:\\posters\\") # it will download poster in D drive posters directory
movie_info
movie_info is attribute of PyMovieInfo class's Object it returns dictionary having movie information in it as title, starring, directed_by, budget, etc.
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Create Objects of
MovieObj.movie_info # Returns dictionary having
{'Title': ['Venom'], 'Directed by': ['Ruben Fleischer'],
'Produced by': ['Avi Arad', 'Matt Tolmach', 'Amy Pascal'],
'Screenplay by': ['Jeff Pinkner', 'Scott Rosenberg', 'Kelly Marcel'],
'Story by': ['Jeff Pinkner', 'Scott Rosenberg'],
'Based on': ['Todd McFarlane', 'David Michelinie'], 'Starring': ['Tom Hardy', 'Michelle Williams',
'Riz Ahmed', 'Scott Haze', 'Reid Scott'], 'Music by': ['Ludwig Göransson'],
'Cinematography': ['Matthew Libatique'], 'Edited by': ['Maryann Brandon', 'Alan Baumgarten'],
'Production company': ['Columbia Pictures', 'Marvel Entertainment', 'Tencent Pictures', 'Arad Productions', 'Matt Tolmach Productions', 'Pascal Pictures'],
'Distributed by': ['Sony Pictures Releasing'],
'Release date': [datetime.datetime(2018, 10, 1, 0, 0)], 'Running time': [112], 'Country': ['United States'],
'Language': ['English'],
'Budget': [{'ammount': 100000000.0, 'currency': '$'}],
'Box office': [{'ammount': 856100000.0, 'currency': '$'}]}
title
title is an attribute of PyMovieInfo class's Object it returns list of movie title.
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Create Objects of 'PyMovieInfo'
print(MovieObj.title[0]) # will print movie title(output:"Venom")
running_time
running_time is attribute of PyMovieInfo class's object it returns list having movie's running time in minutes.
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Creates Object of 'PyMovieInfo'
print(MovieObj.running_time[0]) # will print movie running time in minutes(output:"112")
starring
starring is attribute of PyMovieInfo class's Object it returns list of movie cast
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Creates Object of 'PyMovieInfo'
print(MovieObj.starring) # will print movie starring cast's names(output:['Tom Hardy', 'Michelle Williams', 'Riz Ahmed', 'Scott Haze', 'Reid Scott'])
directed_by
directed_by is an attribute of PyMovieInfo class's object it returns list having director names
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Create Objects of 'PyMovieInfo'
print(MovieObj.directed_by) # will print movie directer's names(output:['Ruben Fleischer'])
release_date
release_date is an attribute of PyMovieInfo class's object it returns list having release dates(object).
Examples:
from PyMovieI import PyMovieInfo
MovieObj=PyMovieInfo('Venom') # Create Objects of 'PyMovieInfo'
print(MovieObj.release_date) # will print (output:[datetime.datetime(2018, 10, 1, 0, 0)])
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what would you like to change in package PyMovieI.
Please make sure to update tests as appropriate.
License
Metadata
Release files for PyMovieI 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| PyMovieI-0.1.0.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyMovieI-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / PyMovieI-0.1.0.tar.gz
| Download URL | PyMovieI-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0c9a1e4546d52dce93b8edb843d88fcdbef313672e0420775264a101aab9eb3
|
|
BLAKE2b-256 checksum How to use checksums |
344e951f6e8de332cd767132b07023229c2c10a2b064bbe0f8ce3f8bf0d15461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / PyMovieI-0.1.0-py3-none-any.whl
| Download URL | PyMovieI-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
587ca4f79b6c95b6552857fe4b0e61765137c1060ba9bd92a28a873fd57e8945
|
|
BLAKE2b-256 checksum How to use checksums |
c4d14819a18c0a555288e918f93cd1218af142c40ad61b600a36b7b2041d436a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Security for PyMovieI 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.