Created
February 15, 2026 08:05
-
-
Save xbladev/67260338bc4cfde05b4795d6dcb98107 to your computer and use it in GitHub Desktop.
ssyoutube dl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Free Scrape Channel | |
| // https://whatsapp.com/channel/0029Vb6xGdD11ulNhYPtMt3j | |
| // YTMP3 SCRAPER | |
| const axios = require('axios'); | |
| async function getYouTubeMp3(youtubeUrl) { | |
| try { | |
| const videoId = youtubeUrl.split('be/')[1]?.split('?')[0] || youtubeUrl.split('v=')[1]?.split('&')[0]; | |
| if (!videoId) { | |
| console.log("video id not found"); | |
| return; | |
| } | |
| const ajaxUrl = 'https://ssyoutube.online/wp-admin/admin-ajax.php'; | |
| const step1Payload = new URLSearchParams(); | |
| step1Payload.append('action', 'get_mp3_yt_option'); | |
| step1Payload.append('videoId', videoId); | |
| const response1 = await axios.post(ajaxUrl, step1Payload, { | |
| headers: { 'Content-Type': 'application/x-www-form-urlencoded' } | |
| }); | |
| if (!response1.data.success || !response1.data.data.link) { | |
| console.log("not found link"); | |
| return; | |
| } | |
| const rawMp3Link = response1.data.data.link; | |
| const videoTitle = response1.data.data.title; | |
| console.log(`Title: ${videoTitle}`); | |
| const step2Payload = new URLSearchParams(); | |
| step2Payload.append('action', 'mp3_yt_generic_proxy_ajax'); | |
| step2Payload.append('targetUrl', rawMp3Link); | |
| const response2 = await axios.post(ajaxUrl, step2Payload, { | |
| headers: { 'Content-Type': 'application/x-www-form-urlencoded' } | |
| }); | |
| if (response2.data.success && response2.data.data.proxiedUrl) { | |
| console.log(response2.data.data.proxiedUrl); | |
| } else { | |
| } | |
| } catch (error) { | |
| console.error("err:", error.message); | |
| } | |
| } | |
| getYouTubeMp3("https://youtu.be/pQCrpk_BCeA?si=NXc-o0pa93KWzQtO"); | |
| // RESULT | |
| Title: Most Brutal finishers & CHAOS Moments In Wrestling Empire 🔥 | |
| dl_link: https://ex.fastcarrycdn.online/RUcBARAMAAAAAEJ5xgUBEnAANLkZRR0EvmDSUNQx7R8iw0xo2Zb05VuXxKyvHh-7nKFCRsjahfAg4ABVPbfm8IWzYDHyuk_c5LDaLuiFYCNfKNCwAC0aHUb7YXUxbqe2Tho_KuuMn8CCkgebxukex_YZdnuUtPzxPRdOMqNgsccNdyD5aRhttoSHNf0S0VxtbcJ8KkVwTiHrZA0vblSzMxoEmWGWJRF9VLqQH_zGGgNMfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment