This script automatically saves titles expiring on Netflix every day, in JSON format that you can use as you see fit. The automation is powered by GitHub Actions and executes automatically everyday as defined in the daily.yaml.
You should not need to make any commits back to the repo. You need to obtain an API token for uNoGS (from RapidAPI) and setting up the environment variables in GitHub secrets in order to allow ntflx-leaving.py
to execute properly. You need to fork this repo in order to have your own instance of GitHub Actions.
Start off with simple fork by clicking on the “Fork” button. Once you’ve done that, you can use your favorite git client to clone your repo or use the command line:
# Clone your fork to your local machine
$ git clone https://github.com/<your-username>/netflix-leaving.git
Use the package manager pip to install all of the required libraries. You could use this with a virtual environment if required.
$ pip install -r requirements.txt
.sample.env
file from the root folder on your local machine..env
. Do not post these details anywhere publically.Example:
XRAPIDAPIKEY=thisisasecret
.env
Any execution errors can be found from within the actions tab of your forked repo.
Alternatively, you can store the XRAPIDAPIHOST, XRAPIDAPIKEY back into your .env
file and execute ntflx-leaving.py
on your machine when required, maybe manually or using a task scheduler. Make sure to have the .env
and ntflx-leaving.py
files in the same directory for this.
$python ntflx-leaving.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
https://stackoverflow.com/a/12091134
https://stackoverflow.com/a/8024259