Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- base : https://ugoira.com/
- by : wolep
- req : RennZero Official
- note : handdle buffer nya ya
- update : 8 September 2025
- */
- import fs from 'fs'
- const ugoira = {
- _baseUrl: 'https://ugoira.com',
- _getBuff: async function (url) {
- try {
- const headers = {
- "referer": this._baseUrl + "/",
- }
- const r = await fetch(url, { headers })
- if (!r.ok) throw Error('ror')
- return Buffer.from(await r.arrayBuffer())
- } catch (e) {
- return null
- }
- },
- download: async function (url) {
- // validation
- const postId = url.match(/^ *(?:https:\/\/)?www.pixiv.net(?:\/en)?\/artworks\/(\d+) *$/)?.[1]
- if (!postId) throw Error(`gagal menemukan match post id. pastikan url sudah benar`)
- // hit
- const headers = {
- "content-type": "application/json",
- }
- const body = JSON.stringify({ text: postId })
- const r = await fetch("https://ugoira.com/api/illusts/queue", { headers, body, "method": "POST" })
- if (!r.ok) throw Error(`${r.status} ${r.statusText}`)
- const j = await r.json()
- // mp4 path checking
- const mp4 = j?.data?.[0]?.preview?.mp4
- if (!mp4) throw Error(`gagal mendapatkan url download mp4`)
- // download mp4 into buffer
- const buff = await this._getBuff(mp4)
- if (!buff) throw Error(`gagal mendownload mp4`)
- // return value
- const result = {
- bufferMp4: buff,
- meta: j.data[0]
- }
- return result
- }
- }
- // cara pakai
- ugoira.download('https://www.pixiv.net/en/artworks/89324061')
- .then(data => {
- // handle buffer
- const path = './' + data.meta.id + '.mp4'
- fs.writeFileSync(path, data.bufferMp4)
- console.log('file saved!', path)
- })
- .catch(error => {
- console.log(`error. ${error.message}`)
- })
- /* output json
- {
- "bufferMp4": bla bla bla bla...... ,
- "meta": {
- "id": 89324061,
- "type": 2,
- "title": "Pari bounce",
- "author_name": "Kamuo",
- "author_id": 41011921,
- "preview": {
- "cover": "https://i.ugoira.com/img-original/img/2021/04/22/23/03/30/89324061_ugoira0.jpg",
- "mp4": "https://t-hk.ugoira.com/ugoira/89324061.mp4"
- },
- "width": 1600,
- "height": 1600,
- "nsfw": false,
- "tags": [
- "Ugoira",
- "デフォルメ",
- "かわいい"
- ]
- }
- } */
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=fvogufnoxw
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment