I have a python script. It runs ok in python2, but when I run it in python3, I get this error:
name = r.content.translate(None, "\n \t/\"'")
TypeError: a bytes-like object is required, not 'str'
the line that assigned r is this:
r = requests.get('10.10.10.10/test_' + name, verify=True)
how can I fix this problem ? I need my script to run in python3.