Run git clone command
Simple OMDB api calling application in python
-
Install omdb from internet using: pip install omdb
-
Generate api keys from the website: http://www.omdbapi.com/apikey.aspx
-
We also check the requets module, if not installed, we have to install it.
-
Run python file omdb_api_calling.py in CMD using: python omdb_api.py movie_name (Only one argument to be passed)
-
Gives the information in the form of Json data.
(Linux Machine)
Note: Create a docker container in the server, and installed python3-pip. After installing all the dependies
-
Now run python script inside docker container and input movie whose ratings we need.
example:- python /tmp/OMDB_API.py The Avengers
-
For updated code, we want to push code to the /tmp directory...
docker pull vivekk1/omdb_repo:Python-Container 8. Copy the file in the folder.
docker cp file-name :/path