title: Scrapy: How to get return values from Scrapy.Request?
body: <p>I'm currently trying to figure out how to get a return value from a scrapy request. The first snippet shows the way I'm doing the request. In the parse function (2nd snippet) I'm extracting some values which I would like to return with two lists. My question is: How can I get these two values after the yield statement in the first snippet?</p>
  
  <pre><code>        while i &lt; pages:
          # default link is combined with the specific page number
          url = link+str(i)
          yield scrapy.Request(url=url, callback=self.parse)
          i = i+1
  </code></pre>
  
  <p>2nd snippet:</p>
  
  <pre><code>    def parse(self, response):
  
      # here the code is filling x_array and y_array with values
  
      return x_array, y_array
  </code></pre>
  
  <p>Thank you so much for your help!!</p>