Scrapy, a fast high-level web crawling & scraping framework for Python.
documentation for CSS support in link extractors
Artur Gasparb0730a1d16b6
diff --git a/docs/topics/link-extractors.rst b/docs/topics/link-extractors.rstindex 43740adcc..9758c2f35 100644--- a/docs/topics/link-extractors.rst+++ b/docs/topics/link-extractors.rst@@ -51,7 +51,7 @@ LxmlLinkExtractor:synopsis: lxml's HTMLParser-based link extractors-.. 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)+.. class:: LxmlLinkExtractor(allow=(), deny=(), allow_domains=(), deny_domains=(), deny_extensions=None, restrict_xpaths=(), restrict_css=(), tags=('a', 'area'), attrs=('href',), canonicalize=True, unique=True, process_value=None)LxmlLinkExtractor is the recommended link extractor with handy filteringoptions. It is implemented using lxml's robust HTMLParser.@@ -88,6 +88,11 @@ LxmlLinkExtractorlinks. See examples below.:type restrict_xpaths: str or list+ :param restrict_css: a CSS selector (or list of selectors) which defines+ regions inside the response where links should be extracted from.+ Has the same behaviour as ``restrict_xpaths``.+ :type restrict_css: str or list+:param tags: a tag or a list of tags to consider when extracting links.Defaults to ``('a', 'area')``.:type tags: str or list