npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anigrab

v1.11.0

Published

Free and fast open source anime downloader

Downloads

47

Readme

anigrab · npm version PRS

Fast and efficient anime downloader that gets the episodes you need quickly, saving you your precious time and energy.

Features:

  • Download anime from various sources such as AnimeOut, GogoAnime, AnimeFlix and more
  • Save the download links of anime episodes to a file
  • Specify the episodes you want to download
  • Configure downloading options and site options
  • intuitively handles any quality from 1080p to even the most elusive ones
  • Can stream videos right from the sites

Supported Sites

  • 4anime
  • animeflix
  • animefreak
  • animekisa
  • animeidhentai
  • animeout
  • animepahe
  • animerush
  • gogoanime
  • hentaihaven
  • ryuanime
  • twist

Installation

You must have nodejs and npm and aria2c installed on your computer, preferably the more recent versions. Type this into your commandline.

npm install -g anigrab

And you should be ready to get started using anigrab

Usage

Downloading

Downloading an anime is as simple as typing in the name of an anime which initiates a search for the anime. Ensure you have aria2c installed which is what is used for downloading otherwise downloading will not work. For example:

anigrab beastars -e 10

This will make anigrab download episode 10 of Beastars from animekisa by default, to specify a site you can use the -s flag

anigrab beastars -e 10 -s gogoanime

This will download Beastars episode 10 from gogoanime. If you want to get a little more specific in the episodes of the anime you want you can do this:

anigrab beastars -e 1,5,10:12

This may look complicated at first but it basically means this will download episodes 1, 5, 10, 11 and 12 of the anime Beastars. Giving the direct link of the anime works as well:

anigrab "https://www18.gogoanime.io/category/black-clover-tv"

Will download Black Clover from gogoanime

Command Line Options

You can specify some command line flags that affect the behavior of anigrab, these are:

--help                          shows this help message

-q, --quality                   quality of the video, can be 720p or 1080p or any other resolution

-e, --episodes                  episodes to get for example "1,2,5:10"

-w, --write                     writes stream urls by appending them to a file named anime.txt in current working directory

-s, --site                      the site to get the anime from, choose animepahe, gogoanime etc.

-u, --url                       prints stream url of episode

--fb, --fallback                comma separated string of qualities to choose if quality asked for is not found e.g 360p, 480p

-d, --directory                 the directory to download the file to

--sk, --skip                    skips downloading the file

--xd, --external-downloader     the external downloader to use to download the file, aria2c by default and currently aria2c only supported

--ft, --filter-title            regular expression to filter episodes based on their titles

-p, --play                      plays the episode using mpv

Usage as Library

anigrab has useful functions that try to intuitively fetch the information of an anime. Each file that handles a site contains three functions it exports which are search, getAnime and getQualities. Usage is as imple as

Search, Get Anime and Get Qualities

const { search, getAnime, getQualities } = require('anigrab').sites.siteLoader(
    'animeout'
);

async function main() {
    const searchResults = await search('naruto'); // Initiates a search for Naruto, this is a promise so can be awaited
    const { url } = searchResults[0]; // Use destructuring to get url of search result at index 0
    const anime = await getAnime(url); // Retrieves the title of the anime and it's episodes, again this is awaitable
    const episodeURL = anime.episodes[0].url; // Episode objects contain their url, here we access the url of the episode at index 0 of the episode list
    const qualities = await getQualities(episodeURL); // This retrieves the available qualities of the episode as a map of qualities pointing to an object with the server that is host and the referer to use
    console.log(qualities);
}

main();

Similar Projects

Disclaimer

The developer of this application does not have any affiliation with any of the content providers available. If you like the content providers support them in anyway you can.