mirror of https://github.com/scrapy/scrapy.git
constructor → __init__ method
This commit is contained in:
parent
7f4f98fd38
commit
0fbd1ff4a9
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue