web.py 文件源码

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

项目:MalwrAgent 作者: michaelschratt 项目源码 文件源码
def f_retrieve_image(self, url=None):
        """retrieve an image, image is stored in memory only
        :rtype: StringIO object
        :param url: Image URL
        :return: Object of image
        """
        if self.input:
            if not self.input.startswith('http'):
                self.input = 'http://' + self.input
            output = BytesIO(requests.get(self.input).content)
        else:
            output = BytesIO(requests.get(url).content)
        return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号