This code repository allows you to pull information about Netflix movies and actors from a particular site, and the last watch date of movies that will be removed from Netflix.
This code repository allows you to pull information about Netflix movies and actors from a particular site, and the last watch date of movies that will be removed from Netflix.
Be sure to use the same version of the code as the version of the docs you’re reading.
You probably want the latest tagged version, but the default Git version is the master branch.
# clone the repository
$ git clone https://github.com/furkankyildirim/FlixWatcher
$ cd FlixWatcher
# checkout the correct version
$ git tag
Create a virtualenv and activate it:
$ python3 -m venv venv --without-pip
$ source venv/bin/activate
Install pip3 requirements
$ pip3 install -r requirements.txt
If you want to run Loader or Loader2:
$ source venv/bin/activate
$ python3 -m Loader #or python3 -m Loader
When the program starts, it reflects the player and movie data taken from the website to the console. It also saves movie and player data to the database you specify in the config.ini file.
$ export FLASK_APP=Service
# to run in developer mode
$ export FLASK_ENV=development
$ flask run
Or on Windows cmd:
$ set FLASK_APP=Service
# to run in developer mode
$ set FLASK_ENV=development
$ flask run
Open http://127.0.0.1:5000 in a browser.
# if your service does not have Gunicorn server
$ pip3 install gunicorn
$ ./runner.sh
# to the service to run in the background
$ ./runner.sh &
Edit the config.ini file so that the program can run on your own computer.
[Database]
host = Your_hostname
port = Your_portname
user = Your_username
pass = Your_password
db = Your_DBname
[Service]
host = Your_hostname
port = Your_portname
Edit the runner.sh file so that the program can run on your gunicorn service
NUM_WORKERS=1
TIMEOUT=600
exec gunicorn Service:app \
--workers $NUM_WORKERS \
--timeout $TIMEOUT \
--log-level=debug \
--bind=127.0.0.1:5000 \
If you cannot to connect to your server:
$ kill $(lsof -t -i:your_portname)
If you get the error (Permission denied) when try to run runner.sh
$ chmod +x runner.sh
If you get ssh error when try to connect MySql Database
you should execute:
$ ALTER USER 'your_username'@'your_hostname' IDENTIFIED BY 'your_password' PASSWORD EXPIRE NEVER;
$ ALTER USER 'your_username'@'your_hostname' IDENTIFIED WITH mysql_native_password BY 'your_password****';
NOTE: The Loader file may give an error because the template of the websites from which the data is drawn may change in the future.