且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Scrapy 无法使用 itemloader 抓取第二个页面

更新时间:2023-12-03 09:59:22

您可以像这样初始化 ItemLoader:

You initialize the ItemLoader like so:

il = CAPjobsItemLoader(CAPjobsItem, sites)

文档中 是这样完成的:

l = ItemLoader(item=Product(), response=response)

所以我认为您在 CAPjobsItem 处缺少括号,您的行应为:

So I think you're missing parentheses at the CAPjobsItem and your line should read:

il = CAPjobsItemLoader(CAPjobsItem(), sites)