rmax / scrapy-redis

Redis-based components for Scrapy.
http://scrapy-redis.readthedocs.io
MIT License
5.49k stars 1.59k forks source link

[BUG] MySpider' object has no attribute 'settings' #217

Closed LuckyPigeon closed 2 years ago

LuckyPigeon commented 2 years ago

Description

In spiders.py, got three redundant words "self" in line 79, 82, 89 separately. Cause an error AttributeError: 'MySpider' object has no attribute 'settings'.

Reproduce message

In your terminal, at scrapy_redis root folder, enter pytest tests/test_spiders.py

Log

image

Tasks