Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

automated anime download with episode sync in Firebase DB

Notifications You must be signed in to change notification settings

sumonst21/anime-onschedule-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Description

Umm, What?

  • This is my own personal automated script to automatically look for new episode and download to local
  • It works with Firebase database to sync episodes (actually do not need it, but I wanted to try Firebase so)

TODO

  • I haven't added FTP support and Email updates to user's email as I am cleaning up
  • I haven't added my Celery scripts, because I am thinking of moving to normal Cronjobs way

Anime downloader

Anime Scraper and Downloader is from my another project, "Anime Heaven Downloader"

  • Go check that out if you want normal simple anime downloader
  • WARNING: never ever touch that source from downloader directory, as the code is directly from the project mentioned above and any code changes for downloader should be from there


2. Installation

Dependencies and Python runtime

  • Python 3.6+
  • pip install -r requirements.txt

Setting up the automated script

  • First of all you need Google account and create Realtime Database in Firebase
  • Then copy your Realtime Database Endpoint https://*.firebaseio.com/ to src/settings/config.py... DOMAIN
  • After that, create Google Service Account Key. Read Here
  • Copy the key (json format) to src/SECRET/firebase.json

PS: You can amend the code if you want to work with other databases. Database connectors should always be from db directory.



3. Usage

Adding new anime to tracker, aka Firebase DB

  • create anime.json in src, then write something like below
  • then run python sync.py --force to force sync the anime
{
  "animes": [
    {
      "episode": 5,
      "name": "Bording School Juliet",
      "url": "http://animeheaven.eu/i.php?a=Boarding%20School%20Juliet",
      "watching": true
    }
  ]
}
  • this is how your Firebase database will be like firebase screenshot


4. FYI

Automate downloads

  • Upon successfully downloads, the episode number in Firebase will be incremented itself by 1
  • I.e., if episode 4 is downloaded successfully, database episode number will become 5 for next download

Can you make executable program for X platform?

  • No, I do not have plan for making executable program at this point as this is more like automated tool to be run on your 24hr machine like Raspberrry Pi (which I do) or your PC but why tho.. unless you want to turn on PC 24/7
  • If you want simple easy to run downloader, go check "Anime Heaven Downloader"

About

automated anime download with episode sync in Firebase DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages