achillean / shodan-python

The official Python library for Shodan
https://developer.shodan.io
Other
2.52k stars 569 forks source link

Error: Unable to connect to Shodan #174

Closed harshinsecurity closed 1 year ago

harshinsecurity commented 2 years ago

on trying shodan init <api_key> on my Kali Linux machine, I am getting error Error: Unable to connect to Shodan. -> updated the requests library, still the issue persists. shodan_error

ghost commented 2 years ago

Are you Chinese? code this in your py import os os.environ["http_proxy"] = "http://127.0.0.1:10809" os.environ["https_proxy"] = "http://127.0.0.1:10809"

achillean commented 1 year ago

If you're still having connection problems please reach out to support@shodan.io . And you can use https://status.shodan.io to see if there are issues with the API at the time that you're trying to connect. Also please make sure you're running the latest version of the CLI and requests:

pip3 install -U shodan requests