Skip to content

Gochida/booru-getter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("blue_hair+red_shirt+-dress*", (err, url)=>{
   
   if(err){
        //handle error
    }
    
	//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("blue_hair+red_shirt+-dress*", (err,url)=>{

    if(err){
        //handle error
    }
    
	//do something with URL here
}

About

A Node.js module for retrieving images from either Safebooru or Gelbooru.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •