anime-downloader/README.md

116 lines
3.7 KiB
Markdown
Raw Normal View History

2018-02-04 15:33:18 -08:00
# Anime Downloader
2018-05-27 12:58:04 -07:00
[![Build Status](https://travis-ci.com/vn-ki/anime-downloader.svg?branch=master)](https://travis-ci.com/vn-ki/anime-downloader)
[![codecov](https://codecov.io/gh/vn-ki/anime-downloader/branch/master/graph/badge.svg)](https://codecov.io/gh/vn-ki/anime-downloader)
2018-05-28 01:02:45 -07:00
[![PyPI pyversions](https://img.shields.io/badge/python-3.3%2B-blue.svg)](https://pypi.org/project/anime-downloader/)
2018-05-27 12:58:04 -07:00
2018-05-29 12:30:59 -07:00
Ever dreamt about watching anime for free effortlessly without all those unbearable ads? Ever dreamt of downloading your favourite anime for that long trip?
![kawaii](https://media.giphy.com/media/f0yOYF0EtwSVa/giphy.gif)
Yeah. Me too! That's why this tool exists.
2018-02-04 15:33:18 -08:00
## Installation
2018-02-05 15:23:59 -08:00
You can install the stable release from PyPI.
2018-05-28 01:02:45 -07:00
```bash
2018-02-05 15:23:59 -08:00
$ pip install anime-downloader
```
2018-05-28 01:02:45 -07:00
To install the dev version
```bash
2018-05-29 12:30:59 -07:00
$ pip install -U git+https://github.com/vn-ki/anime-downloader.git
2018-02-04 15:33:18 -08:00
```
2018-05-28 01:02:45 -07:00
*NOTE: You might have to use pip3 depending on your system*
2018-02-04 15:33:18 -08:00
## Usage
Run `anime-dl --help` for help text.
2018-05-27 11:10:41 -07:00
```
2018-02-04 15:33:18 -08:00
$ anime-dl --help
Usage: anime-dl [OPTIONS] ANIME_URL
Anime Downloader
Download your favourite anime.
Options:
2018-05-27 11:10:41 -07:00
-e, --episodes <int>:<int> Range of anime you want to download in the
form <start>:<end>
-p, --save-playlist If flag is set, saves the stream urls in an
m3u file instead of downloading
-u, --url If flag is set, prints the stream url
instead of downloading
--play PLAYER Streams in the specified player
--no-download Retrieve without downloading
-q, --quality [360p|480p|720p] Specify the quality of episode. Default-720p
-f, --force Force downloads even if file exists
-ll, --log-level [DEBUG|INFO|WARNING|ERROR]
Sets the level of logger
--help Show this message and exit.
2018-02-04 15:33:18 -08:00
```
2018-05-29 10:41:40 -07:00
You can use this tool to search and download or download directly from the url.
#### Search and download
- To search and download all episodes.
```bash
anime-dl 'code geass'
```
*NOTE: The above command shows the search results (which would fit you're terminal size :innocent:) and you can select the desired result.*
#### Download directly
2018-02-04 15:33:18 -08:00
- To download Fullmetal Alchemist: Brotherhood all episodes
```
anime-dl 'https://9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93'
```
- To download Fullmetal Alchemist: Brotherhood episode 1
```
2018-05-27 11:10:41 -07:00
anime-dl 'https://9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --episodes 1
2018-02-04 15:33:18 -08:00
```
- To download Fullmetal Alchemist: Brotherhood episode 1 to 20
```
2018-05-27 11:10:41 -07:00
anime-dl 'https://9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --episodes 1:21
2018-02-04 15:33:18 -08:00
```
2018-02-05 07:01:37 -08:00
- To get stream url of Fullmetal Alchemist: Brotherhood episode 1.
2018-02-04 15:33:18 -08:00
```
2018-05-27 11:10:41 -07:00
anime-dl 'https://9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --url --episodes 1
2018-02-04 15:33:18 -08:00
```
2018-02-05 07:01:37 -08:00
- To play using vlc. (On windows use path to exe)
```
2018-05-27 11:10:41 -07:00
anime-dl 'https://9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --play vlc --episodes 1
2018-02-05 07:01:37 -08:00
```
2018-02-05 15:23:59 -08:00
2018-05-29 12:30:59 -07:00
### To use `anime_downloader` in your package
This tool can be used as a library. This means you can import it into your own application and search for anime and do many other wonderful things.
See [documentation](https://github.com/vn-ki/anime-downloader/blob/master/package_usage.md).
2018-05-28 01:02:45 -07:00
## Development Instructions
``` bash
# Clone this repo
$ git clone https://github.com/vn-ki/anime-downloader.git
# Run setup.py
$ cd anime-downloader
$ pip install -e .
```
2018-05-27 11:10:41 -07:00
2018-05-28 01:02:45 -07:00
## TODO
2018-02-05 15:23:59 -08:00
- Support for more sites
2018-05-29 12:30:59 -07:00
*Don't judge me for not paying for anime. I want to support these animation studios, but being a college student, I can't.*
**arigatou gozaimasu**
![arigato](https://media.giphy.com/media/VUC9YdLSnKuJy/giphy.gif)