YouTube examples

This commit is contained in:
killer069
2021-08-13 14:58:57 +05:30
parent 04770cc929
commit 06cc44d485
7 changed files with 93 additions and 27 deletions

View File

@@ -1,8 +1,10 @@
import { playlist_info } from "./YouTube";
//This File is in testing stage, everything will change in this
import { playlist_info, video_basic_info, video_info, search } from "./YouTube";
let main = async() => {
let time_start = Date.now()
let playlist = await playlist_info('https://www.youtube.com/watch?v=bM7SZ5SBzyY&list=PLzkuLC6Yvumv_Rd5apfPRWEcjf9b1JRnq')
let result = await search('Rick Roll')
console.log(result[0].url)
let time_end = Date.now()
console.log(`Time Taken : ${(time_end - time_start)/1000} seconds`)
}