Skip to content

Private api to download youtube videos using python and requests from cli

Notifications You must be signed in to change notification settings

tichuk/yt1s-private-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

yt1s-private-api

A Small Python code that wraps free unauthenticated api from yt1s.com

Install

Install requests using pip:

pip install requests

Downlaod the latest module using wget:

wget https://raw.githubusercontent.com/tichuk/yt1s-private-api/main/yt1s_dl.py

Example Usage

from yt1s_dl import ext_dl_link
from yt1s_dl import ext_video_id

video_url = "https://youtu.be/rUWxSEwctFU" # <- video url
res = "auto" # <- resolution (1080p, 720p, 480p, 360p, 240p, 144p, auto)

video_id = ext_video_id(video_url)

dl_link = ext_dl_link(video_id, video_url, res)
print(dl_link)

""" common errors

1. Recheck if the resolution you are trying to retrieve the download link for is available or not 
   (you can always use auto for best quality)

2. You can always declare "video_id" manually it's last few keywords after your url 
   ("rUWxSEwctFU" in this case)

"""

Disclaimer

This is an unofficial API. Use at your own risk.

About

Private api to download youtube videos using python and requests from cli

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages