{ "info": { "author": "Diego Ubirajara", "author_email": "diego.ubirajara@mail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.7" ], "description": "# omdbapi python library.\n[![Build Status](https://travis-ci.org/dubirajara/omdbapi.svg?branch=master)](https://travis-ci.org/dubirajara/omdbapi)\n[![Updates](https://pyup.io/repos/github/dubirajara/omdbapi/shield.svg)](https://pyup.io/repos/github/dubirajara/omdbapi/)\n[![Python 3](https://pyup.io/repos/github/dubirajara/omdbapi/python-3-shield.svg)](https://pyup.io/repos/github/dubirajara/omdbapi/)\n[![codecov](https://codecov.io/gh/dubirajara/omdbapi/branch/master/graph/badge.svg)](https://codecov.io/gh/dubirajara/omdbapi)\n\nPython lib to get movie, series, episode data from the Open Movie Database (OMDb) api.\nExample build and distribution python projects - [Pytools](http://www.python.pro.br) course.\n\nUsed [The Open Movie Database](http://www.omdbapi.com) api to build a python lib and distribution in [pypi](https://pypi.org/project/omdbapi/).\n\n## How to use? \n\n**IMPORTANT**: Requires Python 3.7 or newer. To works with python 3.6 must install the versi\u00f3n 0.5.1.\n\n#### Before, you must be request free the omdbapi api key [here](http://www.omdbapi.com/apikey.aspx?__EVENTTARGET=freeAcct&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUKLTIwNDY4MTIzNQ9kFgYCAQ9kFgICBw8WAh4HVmlzaWJsZWhkAgIPFgIfAGhkAgMPFgIfAGhkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBQtwYXRyZW9uQWNjdAUIZnJlZUFjY3QFCGZyZWVBY2N0x0euvR%2FzVv1jLU3mGetH4R3kWtYKWACCaYcfoP1IY8g%3D&__VIEWSTATEGENERATOR=5E550F58&__EVENTVALIDATION=%2FwEdAAU5GG7XylwYou%2BzznFv7FbZmSzhXfnlWWVdWIamVouVTzfZJuQDpLVS6HZFWq5fYpioiDjxFjSdCQfbG0SWduXFd8BcWGH1ot0k0SO7CfuulN6vYN8IikxxqwtGWTciOwQ4e4xie4N992dlfbpyqd1D&at=freeAcct&Email=)\n\nInstall the library, Python 3.7 or newer:\n```python\n>>> pip install omdbapi\n```\nTo works with python 3.6 must install the versi\u00f3n 0.5.1\n```python\n>>> pip install omdbapi==0.5.1\n```\n\nimport the library and get movie, passing api key and title as parameter, default return short plot:\n```python\n>>> from omdbapi.movie_search import GetMovie\n\n>>> movie = GetMovie(title='Interstellar', api_key='your api key')\n```\n\nOr can set full plot as parameter:\n```python\n>>> movie = GetMovie(title='Interstellar', api_key='your api key', plot='full')\n```\n\n\nGet all data movie json format:\n```python\n>>> movie.get_all_data()\n\n{'Title': 'Interstellar',\n 'Year': '2014',\n 'Rated': 'PG-13',\n 'Released': '07 Nov 2014',\n 'Runtime': '169 min',\n 'Genre': 'Adventure, Drama, Sci-Fi',\n 'Director': 'Christopher Nolan',\n 'Writer': 'Jonathan Nolan, Christopher Nolan',\n 'Actors': 'Ellen Burstyn, Matthew McConaughey, Mackenzie Foy, John Lithgow',\n 'Plot': \"A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.\",\n 'Language': 'English',\n 'Country': 'USA, UK, Canada',\n 'Awards': 'Won 1 Oscar. Another 43 wins & 143 nominations.',\n 'Poster': 'https://m.media-amazon.com/images/M/MV5BZjdkOTU3MDktN2IxOS00OGEyLWFmMjktY2FiMmZkNWIyODZiXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_SX300.jpg',\n 'Ratings': [{'Source': 'Internet Movie Database', 'Value': '8.6/10'},\n {'Source': 'Rotten Tomatoes', 'Value': '72%'},\n {'Source': 'Metacritic', 'Value': '74/100'}],\n 'Metascore': '74',\n 'imdbRating': '8.6',\n 'imdbVotes': '1,275,886',\n 'imdbID': 'tt0816692',\n 'Type': 'movie',\n 'DVD': '31 Mar 2015',\n 'BoxOffice': '$158,737,441',\n 'Production': 'Paramount Pictures',\n 'Website': 'http://www.InterstellarMovie.com/',\n 'Response': 'True'}\n```\n\nGet values using keys as parameter:\n```python\n>>> movie.get_data('Director', 'Actors', 'Awards', 'Plot')\n\n{'Director': 'Christopher Nolan',\n 'Actors': 'Ellen Burstyn, Matthew McConaughey, Mackenzie Foy, John Lithgow',\n 'Awards': 'Won 1 Oscar. Another 43 wins & 143 nominations.',\n 'Plot': \"A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.\"}\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dubirajara/omdbapi", "keywords": "", "license": "GNU AFFERO GENERAL PUBLIC LICENSE", "maintainer": "", "maintainer_email": "", "name": "omdbapi", "package_url": "https://pypi.org/project/omdbapi/", "platform": "", "project_url": "https://pypi.org/project/omdbapi/", "project_urls": { "Homepage": "https://github.com/dubirajara/omdbapi" }, "release_url": "https://pypi.org/project/omdbapi/0.5.4/", "requires_dist": null, "requires_python": "", "summary": "Python lib to get movie, series, episode data from the Open Movie Database (OMDb) api.", "version": "0.5.4" }, "last_serial": 6002631, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "29f141c6f6be672555e8eee8548ca618", "sha256": "f72f1d0551af4a97233a3e7d40bf7c03545cbb0ed163e881efdf90d85461580b" }, "downloads": -1, "filename": "omdbapi-0.1.tar.gz", "has_sig": false, "md5_digest": "29f141c6f6be672555e8eee8548ca618", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37433, "upload_time": "2018-05-19T09:40:25", "url": "https://files.pythonhosted.org/packages/1a/08/784dbeb8911d64ac867c81d79fd48ba14bdc12ec585b4abf6f6298e63474/omdbapi-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e4881d2e289e7933fe27a74a68a84204", "sha256": "77b1c99d1b46dfb4bffc2410c1967d7d461d9046357dc2d739a55dc4f85a1dbb" }, "downloads": -1, "filename": "omdbapi-0.2.tar.gz", "has_sig": false, "md5_digest": "e4881d2e289e7933fe27a74a68a84204", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37748, "upload_time": "2018-05-22T16:21:24", "url": "https://files.pythonhosted.org/packages/3f/f9/243ef1d65c7b8c20abc230c688f13eaf274c07f32098d35fc635cb006a83/omdbapi-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ef337dc3363db80a2c4cc089c9b6a5f7", "sha256": "fdb290d691a393842614f3974517ee4c570db5c6b77ef07fcd673d46832031a1" }, "downloads": -1, "filename": "omdbapi-0.3.tar.gz", "has_sig": false, "md5_digest": "ef337dc3363db80a2c4cc089c9b6a5f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37906, "upload_time": "2018-06-07T17:09:55", "url": "https://files.pythonhosted.org/packages/ed/e0/0db0404bd1eeb8e99a84a707d99f36bd3bb408876d06c481162bb3c8efac/omdbapi-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "9b88fc5add91282b5d07721a2a4f0182", "sha256": "be7b178fbf79bfb97efec80aa71e42b76ad9c6e4e6824417300b739f330bc58c" }, "downloads": -1, "filename": "omdbapi-0.4.tar.gz", "has_sig": false, "md5_digest": "9b88fc5add91282b5d07721a2a4f0182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38047, "upload_time": "2018-06-10T15:21:37", "url": "https://files.pythonhosted.org/packages/51/9d/d08e0c7e0d3e6c1ab8479e59a23fe45dd2d7a673144dae86cde969e8317f/omdbapi-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "cf68a713bf04c9254f0d6537df624c90", "sha256": "6f03e9544227c7b94d9b415b5b2166005be45a87576ec7062cd25498576e83ee" }, "downloads": -1, "filename": "omdbapi-0.5.tar.gz", "has_sig": false, "md5_digest": "cf68a713bf04c9254f0d6537df624c90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41606, "upload_time": "2019-02-06T17:16:25", "url": "https://files.pythonhosted.org/packages/b0/43/8d3650c90120cf2965576a7dc1b24801bfae17b2d7d0870294c1ec1f589e/omdbapi-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "892841b8160a158a2a2f3b564bdebfb5", "sha256": "131ebf79b524327791b67aabcbd6b072fa654434519db07cd9e81f824c034851" }, "downloads": -1, "filename": "omdbapi-0.5.1.tar.gz", "has_sig": false, "md5_digest": "892841b8160a158a2a2f3b564bdebfb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41674, "upload_time": "2019-02-06T17:21:03", "url": "https://files.pythonhosted.org/packages/c7/b7/2de8edd34fa985a5e033089325cddfc94cd7ddd6853c850c5edfbc964ea1/omdbapi-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "05060600e0db20309eeef130b10cab14", "sha256": "88a4bf627a58e2c7dd575b4e252be926ea9fcc7d2f54e6458d51ee4defd117f5" }, "downloads": -1, "filename": "omdbapi-0.5.2.tar.gz", "has_sig": false, "md5_digest": "05060600e0db20309eeef130b10cab14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41698, "upload_time": "2019-05-04T08:16:03", "url": "https://files.pythonhosted.org/packages/52/ef/fc539b7dde1b97b70ab43717afb04b616726d625e1841f67ba5da7812b22/omdbapi-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "974eb7e6751943ab54ac5ddb06b2c8ab", "sha256": "a414697d4eb341b51729fd4212f7bb1bc5b7f05890716d3dd5321e48e912431d" }, "downloads": -1, "filename": "omdbapi-0.5.3.tar.gz", "has_sig": false, "md5_digest": "974eb7e6751943ab54ac5ddb06b2c8ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41720, "upload_time": "2019-05-04T08:26:05", "url": "https://files.pythonhosted.org/packages/37/36/b38e3d8c33b61eb8e90aaa98d98dbb9cb6e3b22cfe71313040a16180b1aa/omdbapi-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "f69bc140c3cc49fc210c6dbd91f5926c", "sha256": "5c8ed9800838d3133dbd6483d9a1f40c2d67037c526fb242d514a5f68ff281be" }, "downloads": -1, "filename": "omdbapi-0.5.4.tar.gz", "has_sig": false, "md5_digest": "f69bc140c3cc49fc210c6dbd91f5926c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18185, "upload_time": "2019-10-20T10:57:08", "url": "https://files.pythonhosted.org/packages/39/da/b8f68034a5b36645c1d77dcb4800c1238f65df167ad7efcad9bc1c620623/omdbapi-0.5.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f69bc140c3cc49fc210c6dbd91f5926c", "sha256": "5c8ed9800838d3133dbd6483d9a1f40c2d67037c526fb242d514a5f68ff281be" }, "downloads": -1, "filename": "omdbapi-0.5.4.tar.gz", "has_sig": false, "md5_digest": "f69bc140c3cc49fc210c6dbd91f5926c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18185, "upload_time": "2019-10-20T10:57:08", "url": "https://files.pythonhosted.org/packages/39/da/b8f68034a5b36645c1d77dcb4800c1238f65df167ad7efcad9bc1c620623/omdbapi-0.5.4.tar.gz" } ] }