r34-module
v1.3.1
Published
A module to Manupilated rule34 API
Downloads
419
Readme
r34-module
Installation
yarn add r34-module
npm install r34-module
pnpm install r34-module
Note
- Make Sure To use tags available in your desire site is more than one page
block_tags
is optional fetature- This module supports
cjs, mjs, ts
gay_block
is optional feature
All Function(s)
Function | Description ---|--- r34_search | Search Images from Rule34 only using tag r34_random | Random image from Rule34 xbooru_search | Search Images from Xbooru only using tag xbooru_random | Random image from Xbooru hypno_search | Search Images from Hypnohub only using tag hypno_random | Random image from Hypnohub safe_search | Search Images from Safebooru only using tag safe_random | Random image from Safebooru real_search | Search Images from Realbooru only using tag real_random | Random image from Realbooru
Examples
import { r34_random } from "r34-module"
;(async () => {
let r34 = await r34_random()
console.log(r34)
})()
/**
* It should response like this
* [
'https://api-cdn.rule34.xxx/images/2882/fb802d8ecf52d334eb0055199ab052f6.jpeg',
'https://api-cdn.rule34.xxx/images/2882/0c273249a4a2d0ebfa51366cad8b2d31.jpeg',
'https://api-cdn.rule34.xxx/images/2882/b1b3b2e1fe71d576457a735e31d64092.jpeg',
'https://api-cdn.rule34.xxx/images/2882/d222e3b42e513bddd2031ec15d6d77b6.jpeg',
...
]
*/
import { r34_random } from "r34-module"
;(async () => {
// Make gay_block true if you want to filter gay,male,furry from array
// ps No hate from gay people pls
let r34 = await r34_random({gay_block: true})
console.log(r34)
})()
/**
* It should response like this
* [
'https://api-cdn.rule34.xxx/images/2378/d408ad0f8719c4e20b9935d0c5f74615.jpeg',
'https://api-cdn.rule34.xxx/images/2378/80b2cdb790deb05799ffc21165c6ee13.jpeg',
'https://api-cdn.rule34.xxx/images/2378/95d79bb38d4508642e4186080f2f54b3.png',
'https://api-cdn.rule34.xxx/images/2378/7759e328bbb9a158dd1b54f65ce55a77.jpeg',
'https://api-cdn.rule34.xxx/images/2378/ffc00aa8eaedf68e88642d3e21391a93.jpeg',
'https://api-cdn.rule34.xxx/images/2378/f72ae99dc8ccd123c673e3bbbca57c5f.jpeg',
...
]
*/
import { r34_search } from "r34-module"
;(async () => {
// block_tags is optional feature
let r34 = await r34_search({ search_tag : "hatsune_miku", block_tags: ["male", "trap"] })
console.log(r34)
})()
/**
* Here is a example Response
* [
'https://api-cdn.rule34.xxx/images/2329/d78f9584656cbaeb56e5b08928c89a09.png',
'https://api-cdn.rule34.xxx/images/2329/b9bbeefa0f3a4e07adbe7fe8d72a0183.png',
'https://api-cdn.rule34.xxx/images/2329/54abb08fcd16161549c92f67daa1c3a3.png',
'https://api-cdn.rule34.xxx/images/2329/c3ccf85503044b6267a17829eb90a043.png',
'https://api-cdn.rule34.xxx/images/2329/20f54d4dce75d60fadbb07aa001ccc99.png',
'https://api-cdn.rule34.xxx/images/2329/ebfeb4689e4cccffff5a34b44715f827.png',
'https://api-cdn.rule34.xxx/images/2329/84298bb20c05282762d1e1f01c3365d6.png',
'https://api-cdn.rule34.xxx/images/2329/6aed8e0f1663a4dac3ca30532e9e0c29.png',
'https://api-cdn.rule34.xxx/images/1305/1a966efa123d4ddedb4745d5460fb32d.png',
'https://api-cdn.rule34.xxx/images/281/9e1c2d77d3dcea3aad822cff79f4720c.jpeg',
'https://api-cdn.rule34.xxx/images/741/d8dcf52748a519beef3c92e0665c3c1a.png',
'https://api-cdn.rule34.xxx/images/2685/374654702538437420731957e79ee435.png',
...
]
*/