-
Notifications
You must be signed in to change notification settings - Fork 605
How to use the ZoomEye api
Vex Woo edited this page Oct 17, 2016
·
1 revision
If you are a ZoomEye api newbie, please try zoomeye_api_test, and input a valid ZoomEye credential.
>>> from pocsuite.api.zoomeye import zoomeye_api_test
>>> zoomeye_api_test()
ZoomEye Username: [email protected]
ZoomEye Password: password
{u'plan': u'developer', u'resources': {u'host-search': 4998, u'web-search': 4978}}
(u'recordrating.com', [u'85.214.142.88'])
(u'receiver.sematext.com', [u'54.227.253.0'])
(u'ramazankorkmaz.com', [u'213.186.33.17'])
(u'quepid.com', [u'130.211.5.117'])
(u'oss.infoscience.co.jp', [u'202.126.229.16'])
....
try to login with username and password, zoomeye will return a valid api token.
>>> from pocsuite.api.zoomeye import ZoomEye
>>> zoomeye = ZoomEye()
>>> zoomeye.username = 'username'
>>> zoomeye.password = 'password'
>>> token = zoomeye.login()
>>> data = zoomeye.dork_search('country:cn')
>>> ...
try to login with a valid ZoomEye API Token.
>>> from pocsuite.api.zoomeye import ZoomEye
>>> zoomeye = ZoomEye()
>>> zoomeye.token = 'Your ZoomEye API Token'
>>> data = zoomeye.dork_search('country:cn')
>>> ...
If you want to know more, please redirect to zoomeye-SDK.
$ sudo easy_install zoomeye-SDK
or
$ sudo pip install git+https://github.com/ZoomEye/SDK.git