As mentioned above,I would like to capture everything that is printed on the screen by Python to a file.
I've found these great answers, but they all use more or less the same approach and don't capture everything. Specifically I try to capture the output of YouTubeDL
, the Python package, not the command line tool, but it's not saved if I just capture sys.stdout
.
P.S.: I'm using Windows.