ItemLoader objects
classs crapy.loader.ItemLoader(item=None, selector=None, response=None, parent=None, **context)user-friendly abstraction to populate an item with data by applying field processors to scraped data. When instantiated with a selector or a response it supports data extraction from web pages using selectors.Parameters item (scrapy.item.Item) – The item instance to populate using subsequent calls to add_xpath(), add_css(), or add_value().
selector (Selector object) – The selector to extract data from, when using the add_xpath(), add_css(), replace_xpath(), or replace_css() method.
response (Response object) – The response used to construct the selector using the default_selector_class, unless the selector argument is given, in which case this argument is ignored.
I have read the official documentation of scrapy, but I could not understand when I should use the selecoter property of the ItemLoader object.
I understand item and response, but isn't selector usually enough to use loader.add_xpath etc. under the defined parse method?