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