I am using the pafy module to download YouTube videos, but in one of the pafy functions, called download
it prints to the screen the progress of the download, I would like to take that output and put it in my tkinter window.
Here is the pafy function:
video = pafy.new(url)
best_video = video.getbest(preftype="mp4")
write_prog("Started downloading "+video.title)
best_video.download()
The last function, best_video.download()
is the one that prints to the screen.
Any ideas of how to do that?