from shodan import WebAPI
SHODAN_API_KEY = "MY API KEY"
api = WebAPI(SHODAN_API_KEY)
results = api.exploitdb.search('PHP')
print 'Results found: %s' % results['total']
for exploit in results['matches']:
print '%s:' % (exploit['description'])
如何将搜索限制为仅打印前 5 个结果?