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
const axios = require('axios'); | |
const cheerio = require('cheerio'); | |
const url = require('url'); | |
class YoutubeConverter { | |
constructor() { | |
this.headers = { | |
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', | |
'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7', | |
'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36', |
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
import axios from "axios"; | |
/* | |
Created by https://github.com/ztrdiamond ! | |
Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
"Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
*/ | |
async function cobalt(config) { | |
try { |
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
import axios from "axios"; | |
/* | |
Created by https://github.com/ztrdiamond ! | |
Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
"Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
*/ | |
async function igdl(url) { | |
try { |
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
import axios from "axios"; | |
import FormData from "form-data"; | |
/* | |
Created by https://github.com/ztrdiamond ! | |
Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
"Aku janji jika hapus watermark ini maka aku rela miskin hingga 7 turunan" | |
*/ | |
async function video2audio(buffer) { |
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
import { parse as urlParser } from "spotify-uri"; | |
import axios from "axios"; | |
async function spotifydl(url) { | |
try { | |
if(!url) return { status: false, message: "undefined reading url!" }; | |
return await new Promise(async(resolve, reject) => { | |
const trackId = (urlParser(url)).id; | |
if(!trackId) return reject("invalid spotify track url!"); | |
axios.get(`https://api.spotifydown.com/download/` + trackId, { |
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
import axios from "axios"; | |
import jwt from "jsonwebtoken" | |
import UrlPattern from 'url-pattern'; | |
import qs from 'query-string'; | |
// jwt generator | |
const privateKey = `-----BEGIN EC PRIVATE KEY----- | |
MHcCAQEEIF7u6fQ1RaVV7YUg+dOD0j6upkFJ1fNQZ4nzz8n0m1zboAoGCCqGSM49 | |
AwEHoUQDQgAEuG6npq0n2HHW+kKK2x2RfMh0J/AzwJeXgUKuMvzC2aXoKZyTLNf+ | |
TNX1cfH+h+aMkOhenIabeiHsjdiHzX/n54lM/g== |
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
/* | |
Author: https://github.com/ZTRdiamond | |
Source: https://whatsapp.com/channel/0029VagFeoY9cDDa9ulpwM0T | |
Pesan: lu gabisa pake cheerio dan skill issue saat pakenya? regex-kan saja | |
*/ | |
const axios = require('axios'); | |
async function ttdl(url) { | |
try { | |
if(!url) return { status: false, message: "undefined reading url!" }; | |
return await new Promise(async(resolve, reject) => { |