Hi all, Is there any way to pass a parameter from middleware to spider? I know I can access a parameter of spider from middleware by accessing 'crawler._spider', but not vice versa.
Actually this does not have to be done in spider. What I ultimately want to do is to delete a cache file when scrapy closes: I create a temporary cache file in middleware level, and need to remove the file when the scrapy instance closes. so I would like to pass down the file name from middleware to spider to deal with the file when CloseSpider signal is called, or I just remove the file in middleware level if the middleware could catch CloseSpider signal somehow.. any suggestion? Lots of thanks in advance! -Sungmin -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
