scrapy/scrapy/commands
Andrey Rakhmatullin baa579df62
Deprecate various `spider` args in `MiddlewareManager` subclasses (#6984)
* Add a crawler argument to MiddlewareManager.__init__().

* Deprecate the spider argument in some MiddlewareManager subclasses.

* Remove the spider argument from ExecutionEngine.open_spider_async().

* Remove the spider argument from Scraper.open_spider().

* Fix the Scraper.close_spider() type hint.

* Remove the spider argument from Downloader internals.

* Deprecate the spider arg of download_func.

* Deprecate the spider arg of Downloader.fetch().

* Deprecate the spider arg of ItemPipelineManager.process_item().

* Fix pylint.

* Tests for MiddlewareManager spider code.

* Deprecated spider arg handling for custom pipeline managers.

* Add a test for the deprecated spider arg in a custom downloader.

* Remove TODO.

* Fix pylint.
2025-08-05 12:21:08 +05:00
..
__init__.py Mark abstract base classes as such. (#6930) 2025-06-30 15:14:34 +05:00
bench.py Bump tool versions. (#6941) 2025-07-05 10:30:30 +02:00
check.py Don't use CrawlerProcess in the commands that don't need it. (#6824) 2025-05-28 19:57:33 +05:00
crawl.py Use AsyncCrawlerProcess in commands. (#6845) 2025-06-03 17:47:52 +05:00
edit.py Don't use CrawlerProcess in the commands that don't need it. (#6824) 2025-05-28 19:57:33 +05:00
fetch.py Merge branch '2.13' 2025-06-09 15:54:35 +05:00
genspider.py Bump tool versions. (#6941) 2025-07-05 10:30:30 +02:00
list.py Don't use CrawlerProcess in the commands that don't need it. (#6824) 2025-05-28 19:57:33 +05:00
parse.py Deprecate various `spider` args in `MiddlewareManager` subclasses (#6984) 2025-08-05 12:21:08 +05:00
runspider.py Use AsyncCrawlerProcess in commands. (#6845) 2025-06-03 17:47:52 +05:00
settings.py Use AsyncCrawlerProcess in commands. (#6845) 2025-06-03 17:47:52 +05:00
shell.py Deprecate non-async counterparts of new async APIs. (#6979) 2025-08-01 00:58:48 +05:00
startproject.py Use AsyncCrawlerProcess in commands. (#6845) 2025-06-03 17:47:52 +05:00
version.py Don't use CrawlerProcess in the commands that don't need it. (#6824) 2025-05-28 19:57:33 +05:00
view.py Add typing for scrapy/commands (#6268) 2024-03-06 13:21:08 +01:00