Scrapy Flight Search
Question: I'm trying to use Scrapy in Python to run a flight search on some flights and
then export it to a csv. This is just for fun as I learn more about Scrapy.

Here is what I have

    
    
     from scrapy.item import Item, Field
     from scrapy.http import FormRequest
     from scrapy.spider import Spider
    
    
     class DeltaItem(Item):
         title = Field()
         link = Field()
         desc = Field()
    
    
     class DmozSpider(Spider):
         name = "delta"
         allowed_domains = ["delta.com"]
         start_urls = ["http://www.delta.com"]
    
    def parse(self, response):
        yield FormRequest.from_response(response,
                                        formname='flightSearchForm',
                                        formdata={'departureCity[0]': 'JFK',
                                                  'destinationCity[0]': 'SFO',
                                                  'departureDate[0]': '07.20.2013',
                                                  'departureDate[1]': '07.28.2013'},
                                        callback=self.parse1)
    
    def parse1(self, response):
        print response.status
    

When I run it it returns blank.

Thanks


Answer: Tested in my spider and give me the log

> 2015-04-17 11:29:28+0800 [delta] DEBUG: Crawled (200) http://www.delta.com>
> (referer: None)  
>  2015-04-17 11:29:28+0800 [delta] DEBUG: Crawled (200)
> http://www.delta.com/air-shopping/findFlights.action> (referer:
> <http://www.delta.com>)  
>  200 #**This is the print of parse1**  
>  2015-04-17 11:29:28+0800 [delta] INFO: Closing spider (finished)

