booru-fetcher

2.0.1 • Public • Published

Booru-Getter

###A Node.js module for retrieving search information or image urls from Safebooru and Gelbooru

###Usage

####Safebooru A worksafe booru.

const getter = require('booru-getter')

//Searching by tags
getter.get(1, 0, "brown_hair+-red*", (xml) =>{
	//work with XML here.
}

//Retrieving a random image with matching tags
getter.getRandom("brown_hair+red_shirt+-dress*", (url)=>{
	//do something with URL here
}

####Gelbooru A booru that contains NSFW images.

//Searching by tags
getter.getLewd(1, 0, "brown_hair+-red*", (xml) =>{
	//work with XML here.
}

//Retrieving a random image with matching tags
getter.getRandomLewd("brown_hair+red_shirt+-dress*", (url)=>{
	//do something with URL here
}

Readme

Keywords

none

Package Sidebar

Install

npm i booru-fetcher

Weekly Downloads

0

Version

2.0.1

License

ISC

Last publish

Collaborators

  • rikumax