title: Scrape using multiple POST data from the same URL
body: <p>I have already created one spider that collects a list of company names with matching phone numbers. This is then saved to a CSV file.</p>
  
  <p>I am then wanting to scrape data from another site using the phones numbers in the CSV file as POST data. I am wanting it to loop through the same start URL but just scraping the data that each phone number produces until there are no more numbers left in the CSV file.</p>
  
  <p>This is what I have got so far:</p>
  
  <pre><code>from scrapy.spider import BaseSpider
  from scrapy.http import Request
  from scrapy.http import FormRequest
  from scrapy.selector import HtmlXPathSelector
  from scrapy import log
  import sys
  from scrapy.shell import inspect_response
  from btw.items import BtwItem
  import csv
  
  class BtwSpider(BaseSpider):
      name = "btw"
      allowed_domains = ["siteToScrape.com"]
      start_urls = ["http://www.siteToScrape.com/broadband/broadband_checker"] 
  
      def parse(self, response):
          phoneNumbers = ['01253873647','01253776535','01142726749']
  
          return [FormRequest.from_response(response,formdata={'broadband_checker[phone]': phoneNumbers[1]},callback=self.after_post)]
  
  
      def after_post(self, response):
         hxs = HtmlXPathSelector(response)
         sites = hxs.select('//div[@id="results"]')
         items = []
         for site in sites:
             item = BtwItem()
  
             fttcText = site.select("div[@class='content']/div[@id='btfttc']/ul/li/text()").extract()
  
             # Now we will change the text to be a boolean value
             if fttcText[0].count('not') &gt; 0:
                 fttcEnabled=0
             else:
                 fttcEnabled=1
  
             item['fttcAvailable'] = fttcEnabled
             items.append(item)
         return items
  </code></pre>
  
  <p>At the minute I have just been trying to get this looping through a list(phoneNumbers) but I have not even managed to get that to work so far. Once I know how to do that I will be able to get it to pull it from a CSV file by myself. In its current state it is just using the phoneNumber with a index of 1 in the list.</p>