Scrape your favorite anime from Okanime without any effort. OkanimeDownloader is a wrapper around youtube-dl to download anime from Okanime.
I made it to look & feel exactly like youtube-dl, so if you're a fan of youtube-dl, this simple project is made for you! This project still in beta. It lacks a lot of features and might contains some bugs as well. But for now, it "just works".
- Python 3.x
- pip
- git (recommended)
First, make sure you have Python 3.x, pip, and git installed on your machine.
Run the following in your command prompt to install:
git clone https://github.com/MoHD20/OkanimeDownloader.git
cd OkanimeDownloader
pip install -r requirements.txt
usage: Oknime.py [-h] [--version] [-F] [-f FORMAT] [--playlist-end NUMBER]
URL [URL ...]
optional arguments:
-h, --help show this help message and exit
General Options:
URL Add at least one url to download
--version Print program version and exit
Video Format Options:
-F, --list-formats List all available formats of requested videos
Video Format Options:
-f FORMAT, --format FORMAT
Video format code, see the "FORMAT SELECTION" for more info
Video Selection:
--playlist-end NUMBER
Playlist video to end at (default is None)
$ python3 okanime.py http://okanime.com/animes/one-piece/episodes/one-piece-797
As simple as that! This will download the highest quality video available for that episode.
Step 1:
List the available formats
$ python3 Oknime.py http://okanime.com/animes/one-piece/episodes/one-piece-797 --list-formats
[generic] FHLWGAJEB3?autostart=true: Requesting header
WARNING: Falling back on generic information extractor.
[generic] FHLWGAJEB3?autostart=true: Downloading webpage
[generic] FHLWGAJEB3?autostart=true: Extracting information
[info] Available formats for FHLWGAJEB3?autostart=true:
format code extension resolution note
0 mp4 480p
1 mp4 720p (best)
Step 2:
Put the format code of your choice after the -format
argument
$ python3 Oknime.py http://okanime.com/animes/one-piece/episodes/one-piece-797 --format 0
$ python3 Oknime.py http://okanime.com/animes/one-piece/episodes/one-piece-790 --playlist-end 797
This will download episodes 790 to 797.
I'm not sure I'll be able to make these things, so If you're interested just dive in.
-
Progress bar (By capturing and parsing the output of youtube-dl and using tqdm)
-
Async downloading (using asyncio or something that would make it possible to download a punch of episode at the same time)
-
Download meta-data (from: AniDB.net, TheTVDB.com, TheMovieDB.org...etc)
-
Download movies from Okanime
-
Make it installable via PyPI(ie. pip install okanimedownloader)
This project isn't officialy connected to Okanime by any means. If you really love anime and could get it legally, then you should do that. Gotta support the industry! ❤️