Netflix HouseHold Auto-Validator
📝 Description
This application monitors an IMAP mailbox for emails from Netflix links. It is designed to automate the process of verifying the primary location for Netflix accounts.
⚙️ Configuration
Edit the config.yaml
file at the root of the project with the following structure:
netflixAuth:
- email: "your-netflix-email@example.com" #Optional
password: "your-netflix-password" #Optional
- email: "your-netflix-email2@example.com" #Optional
password: "your-netflix-password2" #Optional
filterByAccount: false # if true, the application will only process emails that match the email addresses in the netflixAuth section
email:
imap: "imap.example.com:993"
login: "your-email@example.com"
password: "your-email-password"
refreshTime: 20
mailbox: "INBOX"
expiredLinkMessage: "Ce lien n'est plus valide"
targetFrom: "info@account.netflix.com"
targetSubject: "Important : comment mettre à jour votre foyer Netflix"
Note: Make sure to replace the values with your own information.
🚀 Usage
To start the application, run \o/:
go run main.go
The application will connect to the specified mailbox in the configuration file, search for unread emails with the specified subject, and attempt to open Netflix verification links contained in these emails.
📂 Code Structure
main.go
: Main entry point of the application. Loads the configuration and starts the main loop.
email.go
: Contains functions to connect to the mailbox, search for, and process emails.
browser.go
: Contains functions to open Netflix verification links in a Rod-controlled browser.
utils.go
: Contains utility functions such as extracting links and MIME decoding.
📦 Dependencies
🍰 Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
❤️ Support
A simple star to this project repo is enough to keep me motivated on this project for days. If you find your self very much excited with this project let me know with a tweet.
If you have any questions, feel free to reach out to me on Twitter.