9anime 中文文档教程

发布于 4年前 浏览 616 项目主页 更新于 3年前

9anime Scraper

用于抓取和查看托管在 9anime 上的剧集的节点包/cli 工具

Install CLI

全局安装

npm install -g 9anime

使用 npm或 Yarn

yarn global add 9anime

然后只需从终端运行命令 9anime 即可开始! 它会问你几个问题,然后剧集将直接在 VLC 中开始播放。 如果你没有安装 VLC,你可以在这里得到它:https:

Install as a package

//www.videolan.org/vlc/index.en-GB.html 用 npm

npm install 9anime

或用 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();

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();
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文