Scrapy – Pass argument to callback function

python scraping

Home » Blog » Python » python scraping » Scrapy – Pass argument to callback function

Sometime some of the data needs to be passed to the another callback function while using the scrapy framework. For that we can use the meta property of the scrapy request and pass our data there.

In the callback function the data can be received using the response.meta.get(”) method.

The sample entire scrapy code will be like this

About Author

nyasin585

One thought on “Scrapy – Pass argument to callback function

Comments are closed.

×