While scraping a website, I want to get the referer that is pointing to 404s.
def parse_item(self, response): if response.status == 404: Do something