wolfyflutter

ytmp3mobi [youtube] [downloader] [audio] [video] [dl.ymcdn.org]

May 18th, 2025 (edited)
536
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 2.65 KB | Source Code | 0 0
  1. (async () => {
  2.  
  3.   // main function, return object, throws error, param string youtube videos url and string format mp3 or mp4 (opsional)
  4.   let ytmp3mobi = async (youtubeUrl, format="mp3") => {
  5.  
  6.     // param 1 validation
  7.     const regYoutubeId = /https:\/\/(www.youtube.com\/watch\?v=|youtu.be\/|youtube.com\/shorts\/|youtube.com\/watch\?v=)([^&|^?]+)/
  8.     const videoId = youtubeUrl.match(regYoutubeId)?.[2]
  9.     if (!videoId) throw Error("cant extract youtube video id from given link. please check your youtube link")
  10.  
  11.     // param 2 validation
  12.     const availableFormat = ["mp3", "mp4"]
  13.     const formatIndex = availableFormat.findIndex( v => v == format.toLocaleLowerCase())
  14.     if (formatIndex == -1) throw Error (`${format} is invalid format, available format : ${availableFormat.join(", ")}. pick one!`)
  15.    
  16.  
  17.     const urlParam = {
  18.       v: videoId, // your youtube video id 0OjISWlmM9k (example)
  19.       f: format, // or mp4 if you want to download video
  20.       _: Math.random()
  21.     }
  22.  
  23.     const headers = {
  24.       "Referer": "https://id.ytmp3.mobi/",
  25.     }
  26.  
  27.     const fetchJson = async (url, fetchDescription) => {
  28.       const res = await fetch(url, { headers })
  29.       if (!res.ok) throw Error(`fetch failed on ${fetchDescription} | ${res.status} ${res.statusText}`)
  30.       const json = await res.json()
  31.       return json
  32.     }
  33.  
  34.     const { convertURL } = await fetchJson("https://d.ymcdn.org/api/v1/init?p=y&23=1llum1n471&_=" + Math.random(), "get convertURL")
  35.    
  36.     const { progressURL, downloadURL } = await fetchJson(`${convertURL}&${new URLSearchParams(urlParam).toString()}`, "get progressURL and downloadURL")
  37.  
  38.     let { error, progress, title } = {}
  39.  
  40.     while (progress != 3) {
  41.       ({ error, progress, title } = await fetchJson(progressURL, "fetch progressURL"))
  42.       if (error) throw Error(`error found in json object after fetch progressURL, here the value of error key : ${error}`)
  43.       let statusToPrint = progress == 1 ? "[loading]" : progress == 2 ? "[converting]" : progress == 2 ? "[ready]" : "[unkonwn]"
  44.       statusToPrint += ` ${title}`
  45.       console.log(statusToPrint)
  46.     }
  47.  
  48.     const result = { title, downloadURL }
  49.    
  50.     return result
  51.   }
  52.  
  53.   // how to use
  54.   const youtubeUrl = "https://www.youtube.com/watch?v=WK-PlNz52FM&t=208s"
  55.  
  56.   ytmp3mobi(youtubeUrl) // or ytmp3mobi(youtubeUrl, "mp4") to download video, second param is optional, its mp3 by default if its not specified
  57.     .then(data => console.log(data))
  58.     .catch(error => console.log(error.message))
  59.  
  60. })()
  61.  
  62. /* output
  63. {
  64.   title: 'G Sounds - point the star 2',
  65.   downloadURL: 'https://dl.ymcdn.org/3d3bc76ebca890a1b0d12395b8171e00/Hlyb9urvzck'
  66. }
  67. */
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Nexdexek
    15 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. 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.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Ripexsu
    5 hours
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=fmwyzwdfqi
    4.  
    5. 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.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment