2.1.0 • Published 3 days ago

zerochan-scraper-ts v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 days ago

ZeroChan Scraper

Get Image from ZeroChan.net

Installation

npm i zerochan-scraper-ts

Get Image by Keyword

const { ZeroChan } = require('zerochan-scraper-ts')
let ZC = new ZeroChan("Project Name", "Username")

async function getImage(keyword, page) {
    try {
        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('zerochan-scraper-ts')
let ZC = new ZeroChan("Project Name", "Username")

async function getDetail(id) {
    try {
        let detail = await ZC.getDetail(id)
        console.log(detail)
    } catch (e) {
        console.log(e)
    }
}

getDetail("2791848")

Get Tag List

const { ZeroChan } = require('zerochan-scraper-ts')
let ZC = new ZeroChan("Project Name", "Username")

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.

2.1.0

3 days ago

2.0.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago