- flask:
pip3 install flask
- requests:
pip3 install requests
- BeautifulSoup:
pip3 install bs4
If you don't need to update or interact with the movie API, you can skip the following step. Otherwise:
- Please go to The Movie Database API and register for an API key. Put this key into a file
movie_api_secrets.py
in the root folder and name it asAPI_KEY=<YOUR_API_KEY>
.
- Download the code:
git clone https://github.com/Tingjun-Li/movie4you.git
- Go to the root folder:
cd movie4you
- check
params.py
file and change params as you want - run
python3 movie4you.py
and click the link in the terminal (e.g. http://127.0.0.1:5000) If you are running the program in IPython or Jupyter, please uncomment the last line in "movie4you.py".
One can run python3 movie_tree.py
to print out the tree in the terminal. The tree structure has the following pattern: