Python “web服务器返回”;500内部服务器错误“;使用Scrapy发送此FormRequest后

Python “web服务器返回”;500内部服务器错误“;使用Scrapy发送此FormRequest后,python,scrapy,Python,Scrapy,我根据httpFox(Firefox插件)的内容构造以下FormRequest。然而,web服务器总是返回“500内部服务器错误” 有人能帮我吗 原始url为: 这是我的蜘蛛骨架: class IntelSpider(BaseSpider): name = "intel.com" allowed_domains = ["taleo.net"] def start_requests(self): req_china = FormReque

我根据httpFox(Firefox插件)的内容构造以下FormRequest。然而,web服务器总是返回“500内部服务器错误”

有人能帮我吗

原始url为:

这是我的蜘蛛骨架:

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 

你的问题来自英特尔网页,而不是scrapy。 但是 表单通常有一些隐藏字段,发出POST请求的最佳方式如下:

def start_requests(self,response):  
        req_china = FormRequest.from_response(response=response,  
                                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)

你是不是要找一个Taleo的竞争对手?