Skip to content

4relial/ZeroChan-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Images scraper for zerochan.net

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published