#!/usr/bin/env python
# -*- coding: utf-8 -*-

def is_a_picture(response):
    picture_exts = [".png", ".jpg", ".jpeg", ".gif"]
    lower_url = response.url.lower()
    return any([lower_url.endswith(ext) for ext in picture_exts])

05905c14ed10c7c92a3b4e16f4e046a5e01c39d5
<mask token>

def is_a_picture(response):
    picture_exts = ['.png', '.jpg', '.jpeg', '.gif']
    lower_url = response.url.lower()
    return any([lower_url.endswith(ext) for ext in picture_exts])

#!/usr/bin/env python
# -*- coding: utf-8 -*-

def is_a_picture(response):
    picture_exts = [".png", ".jpg", ".jpeg", ".gif"]
    lower_url = response.url.lower()
    return any([lower_url.endswith(ext) for ext in picture_exts])
