AtoraSuunva / booru

Searches boorus for images using some js magic
https://www.npmjs.com/package/booru
MIT License
78 stars 19 forks source link

tags #72

Closed 0d1nAndl0k1 closed 3 years ago

0d1nAndl0k1 commented 3 years ago

is there a way to where it can pull the tags so it can be set as the description

AtoraSuunva commented 3 years ago

Pull the tags? You mean like get the tags that a post has?


Booru.search('safebooru', ['cat'], { limit: 3, random: true })
  .then(posts => {
    for (let post of posts)
      console.log(post.tags)
  })