Is it possible to get some specific info from the console in Python? I mean, i use the OS module in order to get information like ping, or using NMAP in order to get my active hosts connected to my network, stuff like that. It might be better if I show you an example:
import os
os.system('cmd /c "ping youtube.com"')
And my output is this:
Pinging youtube.com [172.217.192.93] with 32 bytes of data:
Reply from 172.217.192.93: bytes=32 time=99ms TTL=105
Reply from 172.217.192.93: bytes=32 time=107ms TTL=105
Reply from 172.217.192.93: bytes=32 time=171ms TTL=105
Reply from 172.217.192.93: bytes=32 time=103ms TTL=105
Ping statistics for 172.217.192.93:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 99ms, Maximum = 171ms, Average = 120ms
Process finished with exit code 0
Very basic as you can see, but here is my problem, I only want to get those times (99, 107, 171, 103), so I can use them later. I use PyCharm and the version of Python is 3.9