title: Scrapy: Login with Selenium webdriver, transfer cookies to spider object?
body: <p>I was just wondering if there's any reasonable way to pass authentication cookies from webdriver.Firefox() instance to the spider itself?  It would be helpful to perform some webdriver stuff and then go about scraping "business as usual".  Something to the effect of:</p>
  
  <pre><code>def __init__(self):
      BaseSpider.__init__(self)
      self.selenium = webdriver.Firefox()
  
  def __del__(self):
      self.selenium.quit()
      print self.verificationErrors
  
  def parse(self, response):
  
      # Initialize the webdriver, get login page
      sel = self.selenium
      sel.get(response.url)
      sleep(3)
  
      ##### Transfer (sel) cookies to (self) and crawl normally??? #####
      ...
      ...
  </code></pre>