Variable xpath saved in Mongo

Asked

Viewed 24 times

0

I have tried it in many ways, but I believe I am missing the point. I would like to save XPATH on Mongodb and import it into item() of Function parse. Is there any way to accomplish ?

  • My goal is to save the xpath path on Mongodb and so, when to use, import from the bank and perform the scrapy. Ex: Response.xpath('div[@class="product"]'). Extract(). The problem is that when I run scrapy, parse item() does not recognize and only saves xpath itself.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.