another.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ssllabs-parser 作者: meelih 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号