import requests

URL="http://10.0.2.30/robots.txt"

headers = {
        "User-Agent":"Googlebot/2.1 (+http://www.googlebot.com/bot.html)"}

r = requests.get(url=URL, headers=headers)

print(r.content)
