Get Scrapy config file as a ConfigParser
(use_closest: bool = True)
| 102 | |
| 103 | |
| 104 | def get_config(use_closest: bool = True) -> ConfigParser: |
| 105 | """Get Scrapy config file as a ConfigParser""" |
| 106 | sources = get_sources(use_closest) |
| 107 | cfg = ConfigParser() |
| 108 | cfg.read(sources) |
| 109 | return cfg |
| 110 | |
| 111 | |
| 112 | def get_sources(use_closest: bool = True) -> list[str]: |
no test coverage detected