When i try to scan an ip, always throes the same error, (Error: Access denied (403 Forbidden))
def getShodan(ip):
print("-------Shodan-------")
try:
api = shodan.Shodan("")
info = api.host(ip)
return ("""
IP: {}
HOSTNAMES: {}
COUNTRYNAME: {}
PORTS: {}
ORGANIZATION: {}
OPERATINGSYSTEM: {}
""".format(ip, info.get('hostnames'), info.get('country_name'), info.get('ports'), info.get('org'), info.get('os')))
except shodan.exception.APIError as e:
print(('Error:')+' %s\n---------------------------------\n\n' % e)
exit(0)
I already change the API key multiple times but nothing changes