knownsec / ZoomEye-python

ZoomEye-python: The official Python library and CLI by Knownsec 404 Team.
https://www.zoomeye.org/doc
GNU General Public License v2.0
528 stars 124 forks source link

Error when init apikey #113

Open sisoma2 opened 4 months ago

sisoma2 commented 4 months ago

When launching the following command:

zoomeye init -apikey "XXXXXXXXXXX"

I get the following error message:

ValueError: this service not aviliable in your area, please use api.zoomeye.hk instead
06opoTeHb commented 3 months ago

ValueError: this service not aviliable in your area, please use api.zoomeye.hk instead - same for me.

ilhamrzr commented 3 months ago

You need to change the domain in the sdk.py file. If you install using pip, you can find the sdk.py file in the following path: .local/lib/python3.xx/site-packages/zoomeye/sdk.py Change all domains https://api.zoomeye.org/ to https://api.zoomeye.hk/

I hope this helps.