Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python SDK error #120

Open
rudy500 opened this issue Oct 8, 2024 · 0 comments
Open

Python SDK error #120

rudy500 opened this issue Oct 8, 2024 · 0 comments

Comments

@rudy500
Copy link

rudy500 commented Oct 8, 2024

Hi,

I working with python 3.9 and latest version of zoomeye, create this code invoke dork_search function and send error, attach code used:

import zoomeye.sdk as zoomeye
import time
zm = zoomeye.ZoomEye(api_key="XXXXXXXX-YYYY-ZZZZZ-PPPP-OOOOOOOOOOO")

data = zm.dork_search("app: apache, country:cn")
time.sleep(3)
zoomeye.show_site_ip(data)

error:

Traceback (most recent call last):
File "C:\USACH\Python Ciberseguridad\Códigos\Codigo Clase 5\ZoomeyeSearch.py", line 5, in
data = zm.dork_search("app: apache, country:chile")
File "C:\Users\Rudy Pinochet\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\zoomeye\sdk.py", line 170, in dork_search
resp = self._request(search_api, params=params, headers=headers)
File "C:\Users\Rudy Pinochet\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\zoomeye\sdk.py", line 131, in _request
raise ValueError(resp.json().get('message'))
ValueError: request invalid, validate usage and try again

Many thanks for you assistant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant