'Resource info shows us available search times.
host-search: total number of available host records to search
web-search: total number of available web records to search'

def resources_info(self):

    data = None
    zoomeye_api = 'https://api.zoomeye.org/resources-info'
    headers = {'Authorization': ('JWT    %s' % self.token)}
    resp = requests.get(zoomeye_api, headers=headers)
    if (resp and (resp.status_code == 200) and ('plan' in resp.json())):
        data = resp.json()
    return data
