[Answer]-Scrapy : login request and crawling, passing item into multiple pages

1👍

Simply because you are yielding an XPathItemLoader and not an Item.

In your method “after_login”, you’re adding an XPathItemLoader objects in the meta, which you try to yield later.

Use the load_item method to return the item.

meta={'item': curDatacrowdItem.load_item()}

You should rename your variables to avoid these mistakes 🙂

Leave a comment