Socket
Book a DemoInstallSign in
Socket

hanime-extractor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

hanime-extractor

scrape hanime

2.0.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
Hanime logo

HANIME-SCRAPER

This is unofficial scraper for https://hanime.tv/


Install

> npm i hanime-extractor

How-to

Typescript

import * as hanime from 'hanime-extractor'

(async() => {
    // get search results
    const output = await hanime.search('hajimete', ['loli'], 'likes', 'asc', 0) 
    console.log(output)

    // get video info using slug gotten from above step
    const videoInfo = await hanime.getVideoMedia('hajimete-no-orusuban-2')
    console.log(videoInfo)

    // download video using results from above steps
    // can also be used to download same filetype videos from other sources than hanime
    const file = await hanime.downloadVideo(videoInfo[1].url, './video/')
    console.log(file)
})()

Arguments

 // 1. text: string, 2. tags?: string[], 3. order_by?: string, 4. orderding?: desc || asc, 5. page?: number 
 // 1. slug: string
 // 1. url: string, 2. path: string

Keywords

hanime

FAQs

Package last updated on 30 Mar 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.