title: How to return data in separated function form the scrapy parse function?
body: <p>I have a parse function using scrapy to get some data from a website, this function pass some data to another function withen this function, i can not return the output!, i tried it with print it worked but i need to use return to get the data in a json file.
  How to make printed func return items?</p>
  
  <pre><code>def parse(self, response):
       all_tr= list()
       for tr in response.xpath('//tr').extract():
             all_tr.append(tr)
       tr_data = list()
       city_tr = list()
       for tr in all_tr:
             if re.findall(r'class="city".+name.+?&lt;', tr):
               city_tr.append(tr)
             else:
               pass
       c= 0
       const =1
       while const ==1:
            try:
              start=city_tr[c]
              end= city_tr[c+1]
              indexStart=all_tr.index(start)
              indexEnd=all_tr.index(end)
              tr_data.append(all_tr[indexStart:indexEnd])
              c=c+1
            except IndexError:
              const=2
              tr_data.append(all_tr[all_tr.index(start):])
       for tr in tr_data:
            func_2(tr) 
  </code></pre>
  
  <p>i have some operations in func_2, then passing it to another fnction "prin func"</p>
  
  <pre><code>def print_func(city,days, tr):
      if len(days)==0:
          item=PropertiesItem()
          item['Name']= ""
          item['City']= city
          item['State']= "CA"
          return item
  </code></pre>
  
  <p>print_func do not return anything, could anyone please tell my why?</p>