'Is there a way via python to read bash/linux console output and store as a string variable?

I've been developing a block of Python code that utilizes AutoDockTools to dock a downloaded protein and ligand and evaluate the maximum magnitude of the binding energies between both. The vina program that specifically docks the chemicals produces the following output in the linux console;

enter image description here

I'd ideally like to read every line of output from 1 to 20. Once I do so, I can easily write code to isolate the binding affinity in kcal/mol and archive the value of the largest absolute magnitude. What would be the computationally simplest way to read specific console/terminal output from a linux command line?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source