Git Product home page Git Product logo

favseries's Introduction

Favorite series unseen

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).

Motivation

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.

Screenshots

In Screenshot 1 -> open a new unseen episode from Flash, from 106 new current episodes appeared.
image

In Screenshot 2 -> open 2 new unseen episodes, both in new tabs, from 105 curent new episodes.
image

More explanation in this video from bellow. It's the best I can get without showing my entire desktop.
image

Tech/framework used

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

Prerequisites

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

Installation

  1. Put the folder in your name documents or where ever you want
    Make sure you have seriesFavorite.py in the same folder as series.dat, series.bak, and series.dir.

  2. Rename your path on line 7, in the seriesFavorite.py
    Rename it with your current path.

os.chdir('C:\\Users\\Cristian\\MyPythonScripts\\seriesFavorite')

Obtional

If you want this program to run everytime you start / log on on your pc, then ...

  1. 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.

  1. And then I recomment added on the next line, for time to review if none episodes appeared :
@pause
  1. Save the file as *.bat ( from batman :) ). I saved startUp.bat

  2. On widows : in start \ search bar, type this : shell:startup

  3. Paste the shortcut in this folder.

Done !

Usage example

  • 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)

Reset

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

Issues

  • 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.

Contributing

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.

Author

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.

favseries's People

Contributors

cristishor201 avatar

favseries's Issues

reset.py

script de resetat serialele de la inceput

install.py

  • pune path-ul automat in fisier (eventual il pun intr-un json), si reseteaza fisierul.

  • creaza automat bat file, si il pune la acelasi nivel cu scriptul

  • instalat module

Documentatie

  • pastrat obtiune shorcut in startUp
  • adaugat instructiune rulare install.py
  • editat obtional
  • sters informatii despre usage
  • editat ce scrie la reset
  • sterg Issue
  • la contributing: vrei alte seriale -> deschide un issue

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.