Skip to content

voron434/styleru_py_week1

Repository files navigation

styleru_py_week1

This is result of my work with TMDB api:
All of these scripts requires Python 3.x.
Each program could work separate, but 3rd and 4th need DataBase from the second task to work.
Also there is full Eng interface. \


1. hello_api_tmdb

This is the first task,

You need to enter your api_key_v3, wich you could get here.
Then program print budget of film №215 in TMDB (wich is Saw II).

example usage:

$python hello_api_TMDB.py  
Enter your api key v3:  
64be4144d51bbaee6234f2w82bb  
4000000  
Process finished with exit code 0  

2. make_own_db

Second task,

I made program to download info about smth like 1000 films from TMDB.
You could find this info in file MyFilmBD.json after run.
It also requires api_key_v3.

example usage:

$python my_own_DB.py  
Enter your api key v3:  
64be4144d51bbaee6234f2w82bb  
(here would be percents of code process)  
Process finished with exit code 0  

Remember, that you must delete this in couple of days, because TMDB don't allow to save their data


3. search_in_db

Third task,

This program search for film in DataBase from second task.
You must enter path to DataBase, and then program will search for your film and print similar results.

example usage:

$python search_in_DB.py  
Enter path to DataBase:  
MyFilmDB.json  
Enter film to search for:  
Saw  
Saw  
Saw II  
Saw III  
Saw IV  
Process finished with exit code 0  

4. search_for_similar_films

Fourth task,

This program will try to find similar to your entered film.
You must print correct title to find smth.
Also you must enter path to your DataBase.

example usage:

$search_for_similar_films.py  
Enter path to DataBase:  
MyFilmDB.json  
Enter film to search for:  
Saw   
Harold and Maude  
Reservoir Dogs  
Saw  
Saw II  
Saw III  
Saw IV  
Strangers on a Train  
The Day the Earth Stood Still   
Process finished with exit code 0  

About

My homework for styleru_py for 1 week

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages