Get the name of the feed spider

Is it possible to access the name of the current spider in the feed conveyor?

+4
source share
1 answer

Document storage URI options can help.

Or, if you are building your own: The methods used by exporters support the transfer of a spider object to it. For instance:

def open_spider(self, spider): print spider.name def close_spider(self, spider): print spider.name def item_scraped(self, item, spider): print spider.name 
+6
source

Source: https://habr.com/ru/post/1392423/


All Articles