Automation for posting invoices to Leeto
.env.browser_fingerprint | ||
.env.netflix_cookies.example | ||
.gitignore | ||
config.sh.example | ||
last-invoice-to-leeto.sh | ||
README.md |
What is this ?
Automation tool for POSTING your Netflix invoice to Leeto
Requirements
apt install bash curl grep jq wkhtmltopdf
Usage
cp .env.netflix_cookies.example .env.netflix_cookies
cp config.sh.example .env.netflix_cookies
- Fill the
.env.netflix_cookies
withSecureNetflixId
andNetflixId
. In firefox these are in the developper tools inStorage/Cookies
- Fill the
config.sh
with your email and password for Leeto - Change the amount of your invoice usally either
7.99
,11.99
or15.99
- If you're not part of Monibrand you need
to change the
LEETO_ORGANISATION_ID
andLEETO_QUOTUM_ID
with yours $ ./last-invoice-to-leeto.sh
- then clean the cached files
rm *.html *.pdf
TODO
- Put this in an automation cron like Zappier or IFTTT or NodeRED
- Better handling error
- Netflix login (can be a pain in the ass)
- Trigger on the good invoice date of Netflix once a month
- Better error handling