code: 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 itef 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
docs: Check for DRF urls.