rmax/scrapy-redis

Logs report a warning: Spider.make_requests_from_url method is deprecated...

Open

#181 opened on Dec 11, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (1,586 forks)batch import
help wantedimprovement

Repository metrics

Stars
 (5,337 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Environments : scrapy-redis 0.6.8, Scrapy 2.4.1, Python 3.8.5 When running the spider, the logs report a warning : Spider.make_requests_from_url method is deprecated: it will be removed and not be called by the default Spider.start_requests method in future Scrapy releases. Please override Spider.start_requests method instead. Warning is from line 66 in https://github.com/scrapy/scrapy/blob/master/scrapy/spiders/__init__.py, the reason may be in https://github.com/rmax/scrapy-redis/blob/master/src/scrapy_redis/spiders.py, method named make_request_from_data in line 121. Can this warning be fixed?

Contributor guide