I need to access the custom settings passed from the CLI using:
-s SETTING_NAME="SETTING_VAL"
from the __init__() method of the spider class.
get_project_settings()
allows me to access only the static settings.
The docs explain how you can access those custom settings by from a pipeline setting up a new pipeline through:
@classmethod
def from_crawler(cls, crawler):
settings = crawler.settings
But is there any way to access them from the __init__()
spider method?