From 68f63e143051f65efbcb906a2417a9ff3f88a5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Mon, 24 Mar 2025 17:29:04 +0100 Subject: [PATCH] Fix bad ports from the main PR --- docs/topics/request-response.rst | 2 +- scrapy/http/request/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index de7840878..a98f77df5 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -352,7 +352,7 @@ errors if needed: "https://example.invalid/", # DNS error expected ] - async def yield_seeds(self): + async def start(self): for u in self.start_urls: yield scrapy.Request( u, diff --git a/scrapy/http/request/__init__.py b/scrapy/http/request/__init__.py index 0bfc92c6b..2b8d0ab84 100644 --- a/scrapy/http/request/__init__.py +++ b/scrapy/http/request/__init__.py @@ -201,7 +201,7 @@ class Request(object_ref): #: #: When defining the start URLs of a spider through #: :attr:`~scrapy.Spider.start_urls`, this attribute is enabled by - #: default. See :meth:`~scrapy.Spider.yield_seeds`. + #: default. See :meth:`~scrapy.Spider.start`. self.dont_filter: bool = dont_filter self._meta: dict[str, Any] | None = dict(meta) if meta else None