from scrapy.utils.project import get_project_settings settings=get_project_settings() print settings.get('NAME')