def size_filter(image_url):
    try:
        file = urlopen(image_url)
    except __HOLE__:
        return None
    data = file.read(1024)
    file.close()
    parser = ImageParser()
    parser.feed(data)
    if parser.image:
        if parser.image.size[0] > MIN_LINK_THUMB_WIDTH and \
            parser.image.size[1] > MIN_LINK_THUMB_HEIGHT:
            print image_url, parser.image.size
            return image_url
dataset/ETHPy150Open linkfloyd/linkfloyd/linkfloyd/experimental/imgparsing/parser.py/size_filter