🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

github.com/panicOnExit/go-youtube-downloader

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/panicOnExit/go-youtube-downloader

Source
Go Modules
Version
v0.0.0-20220722151709-b0c011b65b4f
Version published
Created
Source

go-get-youtube v 0.2

A tiny go-library for downloading YouTube videos. This is just a refactor and updated Version from https://github.com/Kunal-Diwan/go-get-youtube, all credits go to https://github.com/Kunal-Diwan

Usage

Download and then navigate to the folder where the program is located. Open a terminal/cmd window and type in the following:

downloader.exe (or ./downloader if you are on linux)

Just copy your link in the terminal, and press enter.

Library

Example

import (
	youtube "github.com/Kunal-Diwan/go-get-youtube/youtube"
)

func main() {
	// get the video object (with metdata)
	videoUrl:= "https://www.youtube.com/watch?v=C0DPdy98e4c"
	video, err := youtube.GetMetaInformation(videoUrl)

	// download the video and write to file
	option := &youtube.Option{
		Rename: true,  // rename file using video title
		Resume: true,  // resume cancelled download
		Mp3:    true,  // extract audio to MP3 DO NOT USE, CURRENTLY BROKEN
	}
	video.Download(0, "video.mp4", option)
}

FAQs

Package last updated on 22 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts