Skip to content
/ ytvd Public

A bash Script to Download and Watch YouTube Videos.

License

Notifications You must be signed in to change notification settings

Sidmaz666/ytvd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ytvd

A Tool To Browse/Search, Stream and Download YouTube Videos From Terminal. The script uses Invidious API for fetching Information/Videos from YouTube.

Showcase

Dependencies

  1. curl
  2. jq
  3. mpv
  4. fzf
  5. ffmpeg

Basic Installation

	git clone https://github.com/sidmaz666/ytvd.git
	cd ytvd
	sudo cp ytvd /usr/bin

	sudo curl -Ls https://raw.githubusercontent.com/Sidmaz666/ytvd/main/ytvd -O > /usr/bin/ytvd

What Does the Script Provide?

  1. Search On YouTube.
  2. Go To Next Page/Previous Page.
  3. Search Again After Search.
  4. Show Recommended Videos Based on the Selected Video.
  5. Download, Play Multiple Video Formats or Show Video/Audio URLS.

How To Sort Videos?

To Sort Videos According to Upload Dates. Enter the following accordingly along with the search query.

  1. date:hour
  2. date:today
  3. date:week
  4. date:month
  5. date:year

To sort Videos According to Duration

  1. duration:short
  2. duration:long

Sort By Relevance, Rating, Upload Date & Views

  1. sort:relevance
  2. sort:rating
  3. sort:date
  4. sort:views

Example

	ytvd "richard stallmen date:year duration:short sort:views"

Annoyance

Some Geo Restricted/Age Restricted Videos URL doesn't doesn't work, can't Stream or Download. 🙂

Is there any need of this script?

(Talking My Mind Here... 🧠)

Yes, because I'm using it and it is personalized to my liking. Most of the features I would want from YouTube while using it from a GUI Web Browser is present here. I know ytfzf exists, it's a great script no doubt, but I'm a student learning on web, Linux about computer in general and so thought it would be nice to make one script personalized to mine needs so I don't have to worry about changing of variables in config file.

About

A bash Script to Download and Watch YouTube Videos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages