- 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)
- 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 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
- Python 3.6+
pip install -r requirements.txt
- First of all you need Google account and create Realtime Database in Firebase
- Then copy your Realtime Database Endpoint
https://*.firebaseio.com/
tosrc/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.
- create
anime.json
insrc
, 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
}
]
}
- 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
- 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"