From 638469f9efdcc104f7b1a1c1a9890694e0d41c68 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Fri, 28 Dec 2018 01:13:01 +0500 Subject: [PATCH] DOC extract_first/extract matches get/getall better Thanks @Gallaecio! --- docs/news.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/news.rst b/docs/news.rst index bf469a350..4a236f1b9 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -11,7 +11,7 @@ Highlights: * better Windows support; * Python 3.7 compatibility; * big documentation improvements, including a switch - from ``.extract()`` + ``.extract_first()`` API to ``.get()`` + ``.getall()`` + from ``.extract_first()`` + ``.extract()`` API to ``.get()`` + ``.getall()`` API; * feed exports, FilePipeline and MediaPipeline improvements; * better extensibility: :signal:`item_error` and @@ -32,7 +32,7 @@ worth mentioning here. Scrapy now depends on parsel >= 1.5, and Scrapy documentation is updated to follow recent ``parsel`` API conventions. Most visible change is that ``.get()`` and ``.getall()`` selector -methods are now preferred over ``.extract()`` and ``.extract_first()``. +methods are now preferred over ``.extract_first()`` and ``.extract()``. We feel that these new methods result in a more concise and readable code. See :ref:`old-extraction-api` for more details.