+ 1
What is on_progress_callback and on_complete_callback in python's module pytube?
I want to make project for my college but i'm stuck on these two topics of pytube module please help me how to use these two.
1 Resposta
0
With those methods you can attach callback functions for "onProgress" and "onComplete".
You can for example - add a function as "on progress callback" to run and update some display (a progress bar, an estimated time left). It will be executed every time when a new chunk of the video is loaded.
Read this reference for more details:
https://python-pytube.readthedocs.io/en/latest/api.html