Giter Club home page Giter Club logo

netflix-household-update's Introduction

Netflix Household Updater

Netflix Location Updater is an easy to use python script to automatically fetch the location update Email from an Email mailbox and click the confirmation link in it. Script can easily run on a Raspberry Pi.

Features

  • Automatically polling of Email mailbox for given polling intervall
  • Netflix Email fetching and automatically household confirmation
  • Moving the Netflix Email into a separate subfolder of mailbox
  • Logging file with info and error messages

Quickstart

Basic installation instruction

Prerequisites

As the script uses selenium to interact with the browser, the chromedriver is needed. Please download the correct chromedriver for your current Chrome version from here: https://chromedriver.chromium.org/downloads Specify the path to the chromedriver executable in the config.ini file.

Alternatively, the chromedriver-py package can be used to automatically download the latest chromedriver. To do so, set the UseChromedriverPy = True option in the config.ini file.

Installation

To install all dependencies, simply install the requirements first:

python -m pip install -r requirements.txt

Usage

Make sure to fill out the config.ini file with the correct parameters for the Email mailbox, first!

To run the script, simply execute the following command:

python netflix_household_update.py

The script will run in an infinite loop and polls the Email mailbox with the default polling time of 2 seconds. The script can be aborted by pressing Ctrl+C

Installation on Raspberry Pi

To start the script at the startup of Raspberry Pi, crontab can be used. For the following commands, it is assumed that the default user pi exists. If not, replace the username with the correct one' The easiest way ist to use SSH connection and execute the following commands:

cd /home/pi
git clone https://github.com/f1shl/netflix-household-update.git
cd netflix-household-update
python -m venv .venv
.venv/bin/pip install -r requirements.txt

Now update all the parameters in the config.ini with your own Email provider data. Start the script and check if it runs without errors. If everything works, break with CTRL+C

Edit crontab:

crontab -e

Select nano as editor. Go to the end of the file and add the following line:

@reboot /home/pi/netflix-household-update/netflix-household-update-launcher.sh &

Save with CTRL+X, Y and finally press Return Now restart the Raspberry Pi:

sudo reboot

The script should now be started after each startup and runs in an infinite loop.

netflix-household-update's People

Contributors

f1shl avatar

Stargazers

asuna avatar Devtechk avatar Alejandro avatar Sandbird avatar Vikrant Chaudhary avatar  avatar Vlad Sterian avatar  avatar Riccardo Rolfini avatar Alex Licata avatar

Watchers

 avatar

netflix-household-update's Issues

Install on Debian 12 server

Hello, thank you very much for these script last night I was think to do something similar because of this problem on netflix and everytime click on the email.
I Have one question can I use this code to run on a debian server?
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.