This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pytube import YouTube, Playlist | |
import progressbar | |
pl = Playlist(url= "") # Enter YouTube playlist link here. | |
pl.populate_video_urls() | |
print("[INFO] Number of Links: {}".format(len(pl.video_urls))) | |
widgets = ["[INFO] Downloading Video: ", progressbar.Percentage(), " ", progressbar.Bar(), " ", progressbar.ETA()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def oct_to_ascii(a): | |
""" | |
a should be 3 character string with each character between 0 to 7 | |
""" | |
oct_val = a[::-1] | |
val = 0 | |
for ind, i in enumerate(oct_val): | |
val += int(i)*(8**ind) | |
char = char(val) | |
return char |