Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

address latest comments

Daniel Graña436c1c898014
diff --git a/docs/topics/link-extractors.rst b/docs/topics/link-extractors.rst
index 13e18e574..b7bd12f1b 100644
--- a/docs/topics/link-extractors.rst
+++ b/docs/topics/link-extractors.rst
@@ -37,26 +37,22 @@ All available link extractors classes bundled with Scrapy are provided in the
:mod:`scrapy.contrib.linkextractors` module.
If you don't know what link extractor to choose, just use the default which is
-the same than LxmlLinkExtractor (see below)::
+the same as LxmlLinkExtractor (see below)::
from scrapy.contrib.linkextractors import LinkExtractor
+LxmlLinkExtractor
+-----------------
+
.. module:: scrapy.contrib.linkextractors.lxmlhtml
:synopsis: lxml's HTMLParser-based link extractors
-.. module:: scrapy.contrib.linkextractors.sgml
- :synopsis: SGMLParser-based link extractors
-
-LxmlLinkExtractor
------------------
.. class:: LxmlLinkExtractor(allow=(), deny=(), allow_domains=(), deny_domains=(), deny_extensions=None, restrict_xpaths=(), tags=('a', 'area'), attrs=('href',), canonicalize=True, unique=True, process_value=None)
- LxmlLinkExtractor provides the same API as :class:`SgmlLinkExtractor`,
- and therefore has the same handy filtering options as constructor parameters,
- but the implementation underneath uses lxml's more robust ``HTMLParser``
- to parse HTML documents:
+ LxmlLinkExtractor is the recommended link extractor with handy filtering
+ options. It is implemented using lxml's robust HTMLParser.
:param allow: a single regular expression (or list of regular expressions)
that the (absolute) urls must match in order to be extracted. If not
@@ -111,9 +107,17 @@ LxmlLinkExtractor
:class:`BaseSgmlLinkExtractor` class constructor
:type process_value: callable
+
SgmlLinkExtractor
-----------------
+.. module:: scrapy.contrib.linkextractors.sgml
+ :synopsis: SGMLParser-based link extractors
+
+.. warning:: SGMLParser based link extractors are unmantained and its usage is discouraged.
+ It is recommended to migrate to :class:`LxmlLinkExtractor` if you are still
+ using :class:`SgmlLinkExtractor`.
+
.. class:: SgmlLinkExtractor(allow=(), deny=(), allow_domains=(), deny_domains=(), deny_extensions=None, restrict_xpaths=(), tags=('a', 'area'), attrs=('href'), canonicalize=True, unique=True, process_value=None)
The SgmlLinkExtractor is built upon the base :class:`BaseSgmlLinkExtractor`