Cant crawl scrapy with depth more than 1

Viewed 7219

I couldn't configure scrapy to run with depth > 1, I have tried the 3 following options, noone of them worked and the request_depth_max at summary log is always 1:

1) Adding:

from scrapy.conf import settings
settings.overrides['DEPTH_LIMIT'] = 2

to spider file (the example on site, just with different site)

2) Running the command line with -s option:

/usr/bin/scrapy crawl -s DEPTH_LIMIT=2 mininova.org

3) Adding to settings.py and scrapy.cfg:

DEPTH_LIMIT=2

How should it be configured to more than 1?

3 Answers
Related