diowo 4dceb9d8e2 | ||
---|---|---|
.gitignore | ||
LICENSE.md | ||
README.md | ||
index.js | ||
package.json | ||
test.js |
README.md
Shimmie2-js
Interact with Shimmie2 instances!
Tested on shimmie.shishnet.org and booru.soy.
Shimmie2 doesn't have an API so I had to scrape the HTML, otherwise I would probably never have created this. Below are some examples.
Example
const Shimmie2js = require('./index.js')
const Shimmie2 = new Shimmie2js('https://booru.soy')
// const Shimmie2 = new Shimmie2js('https://shimmie.shishnet.org')
async function search(tags) {
try {
query = await Shimmie2.search(tags)
console.log(query)
} catch (error) {
console.error(error)
}
}
search(tags = ['anime'])