pytube: [BUG] Download speed getting slower and slower when downloading many videos
When downloading multiple videos continuously, the download speed will become slower and slower.
System information Please provide the following information:
- Python version (run
python --version
) Python 3.8.0 - Pytube version (run
print(pytube.__version__)
in python) 10.8.5 - Command used to install pytube python3.8 -m pip install pytube
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 51
Slow progress today; two more javascript functions left to emulate, then I can try to put together the last piece of this and hopefully get it working
Finished writing the code that will calculate the new value of
n
. Feel free to test out the experimental branch here, and let me know if it fixes the slowdown problem for you. One thing that I’m unclear about is whether or not we will need to disable caching thebase.js
file.I’m about halfway done w/ the next step. Have to stop here for now
The transform plan seems to be successfully extracting. Next step is to create the array of values + functions so that the plan can be applied.
For documentation purposes, an example of what this function looks like (after adding indentation to make it more readable):
Function for computing n
Current progress: I have the functionality to find and extract the relevant function for computing n implemented. I have not yet implemented the functionality for performing the relevant operations on n. That will be the hard part.
@tfdahlin I am using the latest build 10.9.1. It except by
2021-07-07 01:56:26,836 - tid 140216156170048 - ERROR: IncompleteRead: https://www.youtube.com/watch?v=yTl0qi70sMU
Ok, thank you very much!
From: Taylor Fox Dahlin @.> Sent: Tuesday, July 6, 2021 9:02:32 AM To: pytube/pytube @.> Cc: Joon612 @.>; Mention @.> Subject: Re: [pytube/pytube] [BUG] Download speed getting slower and slower when downloading many videos (#1033)
Sometimes it takes a while for that icon to update, it’s showing up correctly for me
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pytube/pytube/issues/1033#issuecomment-874389514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIGM4R3H2K2FGEGASSPTENDTWJI2RANCNFSM47JKZYRA.
https://github.com/ytdl-org/youtube-dl/issues/29326 looks like this is a new youtube issue, with a possible solution, but it sounds like it might be a bit hard to write. I’ll try to investigate and implement it this week if I can, just might take me a while