I construct the FormRequest according to Firefox's httpFox addon's
content. However, the log alway returns 500 error.
Could someone help me on this?
Here is the original url:
http://www.intel.com/jobs/jobsearch/index_ne.htm?Location=200000008
Here is my spider's skeleton:
class IntelSpider(BaseSpider):
name = "
intel.com"
allowed_domains = ["
taleo.net"]
def start_requests(self):
req_china = FormRequest("
https://intel.taleo.net/careersection/
10020/moresearch.ajax",
headers={'Host' : '
intel.taleo.net'}
formdata={'iframemode': '1',
'ftlpageid':
'reqListAdvancedPage',
'ftlinterfaceid':
'advancedSearchFooterInterface',
'ftlcompid': 'SEARCH',
... # commentsThere are
a lots of data here.#
'location1L2': '-1',
'dropListSize': '25',
'dropSortBy': '10'},
callback=self.test)
return [req_china]
def test(self, response):
print response.body # the log alway returns "500 Internal
Server Error"
return