How to get data from terminal Python Django

I have a Django application in which, on the click of a html button, I launch a third-party Python script. This script in the terminal displays a lot of information - messages, progress bar, and more. How can I intercept this information for later display on the pages of the Django web application? How, for example, to save this information to a file? Help me to understand. I don't even have ideas.

I dug into the code of a third-party script, but I can’t understand how information is displayed there in the terminal.

Back to Top