title: Python Scrapy - how to call variable from another spider method?
body: <p>So Im trying to learn scrapy and for learning project I want to scrape this site item names (from just 1 category atm) <a href="https://www.killertools.com/Dent-Removal-Aluminum-Steel_c_11.html" rel="nofollow noreferrer">https://www.killertools.com/Dent-Removal-Aluminum-Steel_c_11.html</a> and then enter those item urls and grab description text.</p>
  <p>I already got some suggestion to write 2 spiders but I dont know how to fetch data from variable in parse method from first spider into second spider to populate start_urls.</p>
  <p>This is where I'm at:</p>
  <pre><code>import scrapy
  
  
  class Names(scrapy.Spider):
  
      name = 'killernames'
  
      start_urls = ['https://www.killertools.com/Dent-Removal-Aluminum-Steel_c_11.html?viewall=1',]
  
      def parse(self, response):
          self.detail = response.xpath('//div[contains(@class, &quot;product-item&quot;)]/div[@class=&quot;name&quot;]/a/@href').getall()
  
          for item in response.xpath('//div[@class=&quot;name&quot;]'):
              yield {
                  'name': item.xpath('./a/text()').extract_first(),
                  'url': item.xpath('./a/@href').extract_first(),
                   }
  
  class Detail(scrapy.Spider):
  
      name = 'killerdetail'
  
      start_urls = []
  
      for item in self.detail: (I dont know how to get it from first spider)
          url = 'https://www.killertools.com/' + item
          start_urls.append(url)
  
  
  
      def parse(self, response):
  
          for item in response.xpath('//div[@itemprop=&quot;description&quot;]'):
              yield {
                     'detail': item.xpath('./p/strong/text()').extract_first(),
                    }
  </code></pre>