fetcher_virustotalapi.py 文件源码

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

项目:costi 作者: lawlrenz 项目源码 文件源码
def get_infos(params, adr):
    data = urllib.urlencode(params)
    req = urllib2.Request(adr, data)
    try:
        response = urllib2.urlopen(req)
    except urllib2.HTTPError, e:
        print e
        return False
    except urllib2.URLError, e:
        print e
        return False
    except httplib.HTTPException, e:
        print e
        return False

    read_resp = response.read()
    if len(read_resp) > 0:
        return json.loads(read_resp)
    else:
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号