You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue where I am trying to download the audio stream for a video. It starts to download, then it stops, says that it has finished when in reality it has only downloaded a few KB and has left it as a .m4a.part file. I have a txt file full of urls that I want to download and y program should work through them, downloading one after the other. It used to work a month or so back, then I got 403 and 404 errors so I switched to use pytube to get the list of URLs from my playlist rather than pafy
file = open("urls.txt","r")
def downloadplaylist():
for i in range (0,5):
vidurl = file.readline()
print(vidurl)
v = pafy.new(vidurl)
audiostreams = v.audiostreams
bestaudio = v.getbestaudio()
bestaudio.download()
print("Finished!")
I have an issue where I am trying to download the audio stream for a video. It starts to download, then it stops, says that it has finished when in reality it has only downloaded a few KB and has left it as a .m4a.part file. I have a txt file full of urls that I want to download and y program should work through them, downloading one after the other. It used to work a month or so back, then I got 403 and 404 errors so I switched to use pytube to get the list of URLs from my playlist rather than pafy
Here is the output:
1,024.0 Bytes [0.05%] received. Rate: [ 143 KB/s]. ETA: [15 secs]
3,072.0 Bytes [0.14%] received. Rate: [ 61 KB/s]. ETA: [36 secs]
7,168.0 Bytes [0.32%] received. Rate: [ 132 KB/s]. ETA: [16 secs]
15,360.0 Bytes [0.68%] received. Rate: [ 253 KB/s]. ETA: [8 secs]
31,744.0 Bytes [1.40%] received. Rate: [ 435 KB/s]. ETA: [5 secs]
64,512.0 Bytes [2.84%] received. Rate: [ 785 KB/s]. ETA: [2 secs]
130,048.0 Bytes [5.72%] received. Rate: [1376 KB/s]. ETA: [1 secs]
261,120.0 Bytes [11.50%] received. Rate: [2422 KB/s]. ETA: [0 secs]
Finished!
The text was updated successfully, but these errors were encountered: