Skip to content

dl command

Michael Johnson edited this page Aug 5, 2020 · 7 revisions

anime dl

Run anime dl --help for help text on dl subcommand.

$ anime dl --help
Usage: anime dl [OPTIONS] ANIME_URL

  Download the anime using the url or search for it.

Options:
  -e, --episodes <int>:<int>      Range of anime you want to download in the
                                  form <start>:<end>
  -u, --url                       If flag is set, prints the stream url
                                  instead of downloading
  --play PLAYER                   Streams in the specified player
  --skip-download                 Retrieve without downloading
  --download-dir PATH             Specifiy the directory to download to
  -q, --quality [360p|480p|720p|1080p]
                                  Specify the quality of episode. Default-720p
  -f, --force-download            Force downloads even if file exists
  -ll, --log-level [DEBUG|INFO|WARNING|ERROR]
                                  Sets the level of logger
  -ff, --file-format FORMAT STRING
                                  Format for how the files to be downloaded be
                                  named.
  --provider [9anime|kissanime]   The anime provider (website) for search.
  -xd, --external-downloader DOWNLOAD COMMAND
                                  Use an external downloader command to
                                  download. Use "{aria2}" to use aria2 as
                                  downloader. See github wiki.
  --help                          Show this message and exit.

You can use this tool to search and download or download directly from the url.

It is recommended to use the external downloader functionality with aria2c because it will be faster than the internal downloader: Use the argument -xd "{aria2}"

Search and download

  • To search and download all episodes.
anime dl 'code geass'

To search on kissanime,

anime dl 'code geass' --provider kissanime

NOTE: The above command shows the search results (which would fit you're terminal size 😇) and you can select the desired result.

Download directly

  • To download Fullmetal Alchemist: Brotherhood all episodes
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93'
  • To download Fullmetal Alchemist: Brotherhood episode 1
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --episodes 1
  • To download Fullmetal Alchemist: Brotherhood episode 1 to 20
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --episodes 1:21
  • To download the latest episode of Fullmetal Alchemist: Brotherhood
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --episodes 0
  • To get stream url of Fullmetal Alchemist: Brotherhood episode 1.
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --url --episodes 1
  • To play using vlc. (On windows use path to exe)
anime dl 'https://www7.9anime.is/watch/fullmetal-alchemist-brotherhood.0r7/j69y93' --play vlc --episodes 1