Scrapy中構造post請求

    由於在scrapy中使用scrapy.FormRequest方法去進行post請求時特別容易發生各種錯誤,所以我在進行scrapy的post請求時選用scrapy.Request()方法攜帶參數進行。 1, 一般情況下requests模塊很容易解決的post請求在scrapy中卻是困難重重,坑多小心崴腳 requests中post請求 2, 針對headers中的Content-Type:
相關文章
相關標籤/搜索