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
- Open the
.sample.env
file from the root folder on your local machine. - Subscribe to RapidAPI uNoGS Basic Plan and create a new application. The Basic Plan permits 100 requests/day for $0.00/month (see # table).
- Fill out the env file with XRAPIDAPIKEY obtained from RapidAPI and save this file as
.env
. Do not post these details anywhere publically.
Example:
XRAPIDAPIKEY=thisisasecret
- Go to the settings of your forked repo and click on Secrets.
- You will need to create the following secrets:
- XRAPIDAPIKEY - Use the same XRAPIDAPIKEY from your
.env
- Go to Actions in your forked repo.
- Click on "Titles expiring on Netflix"
- Click on "Run workflow" which will bring up a drop down menu.
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
- RSS feed (contains titles are leaving Netflix)
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