Nov-12-2018, 06:32 PM
Then you need to learn python's re module, because
re.search()
returns a match object and you want a bytes string, so useip_address = re.search(br"[0-9]+(?:\.[0-9]+){3}", output).group(0)The same applies to the rest of the code.