constructor → __init__ method

This commit is contained in:
Adrián Chaves 2019-10-21 14:06:45 +02:00
parent 7f4f98fd38
commit 0fbd1ff4a9
2 changed files with 5 additions and 5 deletions

View File

@ -6,9 +6,9 @@ Link Extractors
A link extractor is an object that extracts links from responses.
The constructor of :class:`~scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor`
takes settings that determine which links may be extracted.
:class:`LxmlLinkExtractor.extract_links
The ``__init__`` method of
:class:`~scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor` takes settings that
determine which links may be extracted. :class:`LxmlLinkExtractor.extract_links
<scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor.extract_links>` returns a
list of matching :class:`scrapy.link.Link` objects from a
:class:`~scrapy.http.Response` object.

View File

@ -120,8 +120,8 @@ class LxmlLinkExtractor(FilteringLinkExtractor):
"""Returns a list of :class:`~scrapy.link.Link` objects from the
specified :class:`response <scrapy.http.Response>`.
Only links that match the settings passed to the link extractor
constructor are returned.
Only links that match the settings passed to the ``__init__`` method of
the link extractor are returned.
Duplicate links are omitted.
"""