0

This is a simple example of a scrapy.cfg file:

[settings]
default = crawly.settings

[deploy:s1]
url = http://localhost:6800
project = my_project

I wanna know if I could pass any parameters to my scrapyd instance using this file. What I wanna do is to pass a parameter to one of my middlewares. You can pass parameters to your spider or override your settings but not anything with middlewares. I was thinking if a parameter like project could be passed to myserver, I could use that in my middleware.

AliBZ
  • 4,039
  • 12
  • 45
  • 67

1 Answers1

0

check out this corresponding on scrapy github, check the code if they ended up integrating the suggested change or take pablo advice for post egg generation

Guy Gavriely
  • 11,228
  • 6
  • 27
  • 42