def _spider_name(self, file_path):
        """
        Get the name of a spider for a template or spider path.
        """
        split = file_path.split(self.separator)
        if len(split) > 2:
            return split[1]
        return split[1][:-5]

        Get the name of a spider for a template or spider path.
        
portia_server/portia_api/utils/download.py