Neovictorian Paisley Menswear

    youtube-auto-upload-video

    1.0.0 • Public • Published

    Youtube-Auto-Upload-Video is a nodejs package to upload videos on youtube using browser automation. It currently runs only on windows.

    Installation

    npm install youtube-auto-upload-video

    Example

    In this example we first import package, then we login with cookies, then we upload video on youtube

    var youtube=require("youtube-auto-upload-video");
    
    function get_link(response){
    	var videolink=data["body"]["VideoLink"]
    	console.log("videolink",videolink)
    }
    function upload_video(){
    	youtube.upload('title', 'video_path', 'kid_type', 'description', 'type',get_link)
    	//youtube.upload('Python', 'C://Users//video.mp4', "Yes It's made for kids", 'Its just a demo of youtube upload', 'Public')
    }
    youtube.login_cookie(cookie_list,upload_video)
    

    DataKund

    datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up in which video will be uploaded. To upload first login will need to be done. Login can be done either with credentials or via cookies

    Import

    var youtube=require("youtube-auto-upload-video");

    Login with credentials

    youtube.login(username,password)

    Login with cookies

    youtube.login_cookie(list_of_cookies)

    Upload

    youtube.upload(title, video_path, kid_type, description, type)

    Cookies

    To login with cookies Edit this Cookie Extension can be added to browser

    Contact Us

    Install

    npm i youtube-auto-upload-video

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.25 kB

    Total Files

    3

    Last publish

    Collaborators

    • datakund