How to use the zoomeye.zoomeye.ZoomEyeAPI function in zoomeye

To help you get started, we’ve selected a few zoomeye examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jm33-m0 / mec / zoomeye / zoomeye.py View on Github external
def api_test():
    '''
    get verified with zoomeye
    '''
    amnt = int(
        console.input_check(
            "[*] How many results do you want? (10 IPs on each page) ",
            check_type=int).strip())
    threads = []
    api = ZoomEyeAPI('zoomeye.conf')
    access_token = api.login()
    headers = {
        'Authorization': 'JWT ' + access_token,
    }
    status = threading.Thread(target=progress, args=(ZoomEyeAPI.OUTFILE,))
    status.setDaemon(True)
    status.start()
    limit = 0
    for page in range(1, int(amnt / 10)):
        thd = threading.Thread(
            target=crawler, args=(ZoomEyeAPI.QRY, amnt, page, headers,))
        threads.append(thd)
    for job in threads:
        job.setDaemon(True)
        job.start()
        if limit == 0 or limit == 10:

zoomeye

Python library and command-line tool for ZoomEye (https://www.zoomeye.org/doc)

GPL-2.0
Latest version published 1 year ago

Package Health Score

50 / 100
Full package analysis

Similar packages