/tmdb-crawler

A script that uses the TMDB API to get all number one box office hits and find any that are currently steaming that I haven't watched yet.

Primary LanguagePythonMIT LicenseMIT

TMDB Crawler

A script that uses the TMDB API to get all number one box office hits and find any that are currently steaming that I haven't watched yet.

Set-up

Set-up a virtual environment and activate it:

python3 -m venv env
source env/bin/activate

You should see (env) before your command prompt now. (You can type deactivate to exit the virtual environment any time.)

Install the requirements:

pip install -U pip
pip install -r requirements.txt

Obtain a TMDB API key here. Obtain a TMDB Access token here Obtain your TMDB Account ID (gravatar hash) here

Set up your environment variables:

touch .env
echo export TMDB_API_KEY="XXX" >> .env
echo export TMDB_ACCESS_TOKEN="XXX" >> .env
echo export TMDB_ACCOUNT_ID="XXX" >> .env

Usage

Make sure you are in the virtual environment (you should see (env) before your command prompt). If not source /env/bin/activate to enter it.

Make sure .env variables are set:

set -a; source .env; set +a

Then run the script:

Usage: crawler.py

License

TMDB Crawler is licensed under the MIT license.