In short description, it checks if a new episode had appeared, and then let you choose how many you can open in one click for viewing the new one(s).
How would it be if you would not check manually, if it appeared a new episode or more episodes from your favorite series, all done automatically ? Thus it takes your worries about opening same pages, but rather the solicitude of don't loseing some movies. This is how the wish of automation with python it occured.
In Screenshot 1 -> open a new unseen episode from Flash, from 106 new current episodes appeared.
In Screenshot 2 -> open 2 new unseen episodes, both in new tabs, from 105 curent new episodes.
More explanation in this video from bellow. It's the best I can get without showing my entire desktop.
Built with
- Python ( verssion 3.7.2) running on Windows 7, 64 bit
Modules used
- os ......................... -> changing the curent folder of saving shelves dictionary variables
- shelve ................ -> saving informations after I closed the python code
- requests ............ -> accessing webpage without open it
- webbrowser ..... -> open webpage
- beautifulSoup4 -> parse html
- re ......................... -> take the link for each episode
You need to install some third party modules first, from Comand Line in Python\Scripts
:
- Install requests
pip install requests
- Install beautifulSoup
pip install beautifulsoup4
-
Put the folder in your name documents or where ever you want
Make sure you haveseriesFavorite.py
in the same folder asseries.dat
,series.bak
, andseries.dir
. -
Rename your path on line 7, in the
seriesFavorite.py
Rename it with your current path.
os.chdir('C:\\Users\\Cristian\\MyPythonScripts\\seriesFavorite')
If you want this program to run everytime you start / log on on your pc, then ...
- Make a batch file
open notepade, or any text editor, and enter this :
@py C:\Users\Cristian\MyPythonScripts\seriesFavorite\seriesFavorite.py
Make sure you put your path till seriesFavorite.py program.
- And then I recomment added on the next line, for time to review if none episodes appeared :
@pause
-
Save the file as *.bat ( from batman :) ). I saved
startUp.bat
-
On widows : in
start \ search bar
, type this :shell:startup
-
Paste the shortcut in this folder.
Done !
-
If you want to see 1 movie, type :
1
(bellow each question) -
If you want to see more movies, type the number of your movies you want to see :
3
-
If you want to skip a number of movies, you will need to open that number of episodes, in order to update the database :
47
-
If you want to cancel, type :
0
-
If none new movies appeared, the message it will be:
Didn't appeared any new episode from the Flash
( idem for Boruto)
If you want to reset the episodes from the very begining, firstly open Idle Python shell, and change the path for your current folder :
import os
os.chdir('C:\\Users\Cristian\MyPythonScripts\seriesFavorite')
And then please run this code :
import shelve
shelvFile = shelve.open('series')
shelvFile['Flash'] = [1, 1] # For Flash
shelvFile['Boruto] = 1 # for Boruto
-
If you typed a non-integer value like a space, a new line, question mark , a text , you will get error :
Exception: only integer numbers allowed !
-
If you typed a negative integer number, you will get :
Exception: You can't open negative new movies.
-
If you have to open more new movies, that you actually have at your disposition, you will get:
Exception: You can't open more new movies, than they already appeared.
Pull requests are welcome. If you need to see other movies or series, or if you have ideas of improvement, included how can make this section better, you can write them as a request, or email me with the subject seriesFav included.
Note that requests for xxx movies aren't taken into account, at all. Also minor changes.
- Cristian Florescu - Cristishor201
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.