def get_config(use_closest=True):
    """Get Scrapy config file as a ConfigParser"""
    sources = get_sources(use_closest)
    cfg = ConfigParser()
    cfg.read(sources)
    return cfg
Get Scrapy config file as a ConfigParser
stackoverflow/venv/lib/python3.6/site-packages/scrapy/utils/conf.py