https://github.com/gioxx/netflix-leaving
Find out which Netflix titles are expiring in your country :-) (this repo is set to Italy), for example: https://gioxx.github.io/netflix-leaving/2022/0223.html
https://github.com/gioxx/netflix-leaving
expiration json netflix
Last synced: 9 months ago
JSON representation
Find out which Netflix titles are expiring in your country :-) (this repo is set to Italy), for example: https://gioxx.github.io/netflix-leaving/2022/0223.html
- Host: GitHub
- URL: https://github.com/gioxx/netflix-leaving
- Owner: gioxx
- License: mit
- Created: 2022-02-24T10:24:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T08:38:02.000Z (about 1 year ago)
- Last Synced: 2025-09-08T20:37:04.728Z (10 months ago)
- Topics: expiration, json, netflix
- Language: HTML
- Homepage: https://gioxx.github.io/netflix-leaving/
- Size: 1.87 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Netflix Titles Leaving
[](https://github.com/gioxx/netflix-leaving/actions/workflows/daily.yml) [](https://github.com/gioxx/netflix-leaving/actions/workflows/pages/pages-build-deployment)
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](https://docs.github.com/en/actions) and executes automatically everyday as defined in the [daily.yaml](/.github/workflows/daily.yaml).
## Initial Set Up (approx: 10 minutes)
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.
### (1) Create a Fork
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:
```bash
# Clone your fork to your local machine
$ git clone https://github.com//netflix-leaving.git
```
### (2) Libraries
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install all of the required libraries. You could use this with a [virtual environment](https://docs.python.org/3/library/venv.html) if required.
```bash
$ pip install -r requirements.txt
```
### (3) uNoGS API Credentials
1. Open the `.sample.env` file from the root folder on your local machine.
2. Subscribe to [RapidAPI uNoGS Basic Plan](https://rapidapi.com/unogs/api/unogs/) and create a new application. The Basic Plan permits 100 requests/day for $0.00/month (see [Pricing table](https://rapidapi.com/unogs/api/unogs/pricing)).
3. 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
```
### (4) GitHub Actions
1. Go to the settings of your forked repo and click on Secrets.
2. You will need to create the following secrets:
* **XRAPIDAPIKEY** - Use the same XRAPIDAPIKEY from your `.env`
---
## Manual Execution via GitHub Actions
1. Go to Actions in your forked repo.
2. Click on "**Titles expiring on Netflix**"
3. 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.
## Local Execution
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
```
---
## Next Steps:
- RSS feed (contains titles are leaving Netflix)
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](/LICENSE)
## Credits
https://stackoverflow.com/a/12091134
https://stackoverflow.com/a/8024259