def get_list():
os.system('clear')
print "Liste aliniyor..."
worst_response = requests.get(worst_page)
worst_tree = LH.fromstring(worst_response.content)
for atag in worst_tree.xpath(worst_list):
details_response = requests.get(worst_page + atag.attrib['href'])
details_tree = LH.fromstring(details_response.content)
for vuln in details_tree.xpath(heartbleed):
if vuln.text_content().startswith('Yes'):
print WARNING + worst_page + atag.attrib['href'] + ENDC
elif vuln.text_content().startswith('No'):
print worst_page + atag.attrib['href']
else:
print FAIL + worst_page + atag.attrib['href'] + ENDC
评论列表
文章目录