Socket
Socket
Sign inDemoInstall

scraper-zerochan

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scraper-zerochan

Get Image from ZeroChan.net


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ZeroChan Scraper

Get Image from ZeroChan.net

Installation

npm i scraper-zerochan

Get Image by Keyword

const { ZeroChan } = require('scraper-zerochan')
let ZC = new ZeroChan()

async function getImage(keyword, page) {
    try {
        await ZC.login("Your Username", "Your Password"); // create account: https://zerochan.net
        let res = await ZC.getImage(keyword, page);
        console.log(res)
    } catch (e) {
        console.log(e)
    }
}

getImage("Katou Megumi", 2)

Get Image Detail by ID

const { ZeroChan } = require('scraper-zerochan')
let ZC = new ZeroChan()

async function getDetail(id) {
    try {
        await ZC.login("Your Username", "Your Password"); // create account: https://zerochan.net
        let detail = await ZC.getDetail(id)
        console.log(detail)
    } catch (e) {
        console.log(e)
    }
}

getDetail("2791848")

Get Tag List

const { ZeroChan } = require('scraper-zerochan')
let ZC = new ZeroChan()

async function getTag(keyword) {
    try {
        let list = await ZC.getTags(keyword)
        console.log(list)
    } catch (e) {
        console.log(e)
    }
}

getTag("faruzan")

Contributions

Software contributions are welcome. If you are not a dev, testing and reproting bugs can also be very helpful!

Questions?

Please open an issue if you have questions, wish to request a feature, etc.

FAQs

Package last updated on 29 Dec 2022

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc