Shimmie2-js is a library to scrape Shimmie2 instances.
Go to file
diowo 4dceb9d8e2 update some variables 2024-04-20 21:40:35 +02:00
.gitignore Release 1.0.0 2023-10-26 01:25:20 +02:00
LICENSE.md Release 1.0.0 2023-10-26 01:25:20 +02:00
README.md update readme 2024-01-06 04:57:50 +01:00
index.js try adding throw error 2024-01-07 13:40:37 +01:00
package.json update some variables 2024-04-20 21:40:35 +02:00
test.js try adding throw error 2024-01-07 13:40:37 +01:00

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'])