import openpyxl as xl
from openpyxl.chart import BarChart, Reference
from pytube import YouTube
classeur = 'C:\\Users\\aniss\projet python\\bot\\bot_v1\\video_sheet.xlsx'
wb = xl.load_workbook(classeur)
sheet = wb['Feuil1']
SAVE_PATH = 'C:\\Users\\aniss\\projet python\\bot\\bot_v1\\videoyoutubemp4'
video = YouTube(r'https://www.youtube.com/watch?v=GZVw5GK25Jk&t=10s')
stream = video.streams.get_lowest_resolution()
stream.download()
I have already modified the cipher file but it still doesn't work, if someone who using pytube and stil have an working script can help me plz
CodePudding user response:
I recently tried to make a program to download videos with pytube. In the videos I saw it always worked but it gave me an error. Searching I found more people who had errors and could not download the videos and in some places they said that it was a version problem or because Youtube changed its configuration. I also read something about whether the videos have copyrighted or not.