Skip to content
Advertisement

passing table name to pipeline scrapy python

I have different spiders that scrape similar values and I want to store the scraped values in different slite3 tables. I can do this by using a different pipeline for each spider but, since the only thing that changes is the table name, would it be possible to pass somehow the table name from the spider to the pipeline? This is the code I use to create the table:

JavaScript

Advertisement

Answer

yes , something like this?

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement