Socket
Socket
Sign inDemoInstall

9anime

Package Overview
Dependencies
99
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    9anime

A CLI script to scrape and watch shows from 9anime


Version published
Weekly downloads
31
decreased by-69.61%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

9anime Scraper

A node package/cli tool for scraping and viewing episodes hosted on 9anime

Install CLI

Install globally with npm

npm install -g 9anime

Or with Yarn

yarn global add 9anime

Then just run the command 9anime from your terminal to get started! It will ask you a few questions and then the episode will start playing directly within VLC. If you don't have VLC installed you can get it here: https://www.videolan.org/vlc/index.en-GB.html

Install as a package

Install with npm

npm install 9anime

Or with Yarn

yarn add 9anime

Example Usage

import { Anime, createPuppeteerInstance } from "9anime";

// Create a new instance of puppeteer,
// You can replace this with a custom instance if required
const puppeteerInstance = await createPuppeteerInstance();

const anime = new Anime(puppeteerInstance);

// Destructure and get the first show in the search results
const [show] = await anime.search("jojo");

// Destructure and get the first episode of that show
const [episode] = await anime.getEpisodes(show.url);

// Get the video url for the selected episode
const { video } = await anime.getVideo(episode.url);

// Close puppeteer and free resources
anime.close();

FAQs

Last updated on 27 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc