Get Image from ZeroChan.net
npm i zerochan-scraper-ts
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)
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")
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")
Software contributions are welcome. If you are not a dev, testing and reproting bugs can also be very helpful!
Please open an issue if you have questions, wish to request a feature, etc.