我根据 httpFox(Firefox addon) 的内容构造了下面的 FormRequest。但是,Web 服务器总是返回“500 Internal Server Error”。
有人可以帮我吗?
原网址为: http ://www.intel.com/jobs/jobsearch/index_ne.htm?Location=200000008
这是我的蜘蛛骨架:
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",
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
return