def process_item(self, item, spider):  # pylint: disable=unused-argument
        "Check for DRF urls."
        url = URLObject(item["url"])
        if url.path.startswith("/api/"):
            raise DropItem(u"Dropping DRF url {url}".format(url=url))
        else:
            return item
Check for DRF urls.