Skip to content

Commit a1e0e6b

Browse files
Merge pull request #120 from scrapy/doc-fixes
minor documentation fixes
2 parents d422fa5 + dbfda82 commit a1e0e6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ selectors. This API can be used for quickly selecting nested data::
119119
'image4_thumb.jpg',
120120
'image5_thumb.jpg']
121121

122-
If you want to extract only first matched element, you can call the
122+
If you want to extract only the first matched element, you can call the
123123
selector ``.get()`` (or its alias ``.extract_first()`` commonly used in
124124
previous parsel versions)::
125125

@@ -382,7 +382,7 @@ Another common case would be to extract all direct ``<p>`` children::
382382
For more details about relative XPaths see the `Location Paths`_ section in the
383383
XPath specification.
384384

385-
.. _Location Paths: http://www.w3.org/TR/xpath#location-paths
385+
.. _Location Paths: https://www.w3.org/TR/xpath#location-paths
386386

387387

388388
Using EXSLT extensions
@@ -582,7 +582,7 @@ you may want to take a look first at this `XPath tutorial`_.
582582

583583

584584
.. _`XPath tutorial`: http://www.zvon.org/comp/r/tut-XPath_1.html
585-
.. _`this post from ScrapingHub's blog`: http://blog.scrapinghub.com/2014/07/17/xpath-tips-from-the-web-scraping-trenches/
585+
.. _`this post from ScrapingHub's blog`: https://blog.scrapinghub.com/2014/07/17/xpath-tips-from-the-web-scraping-trenches/
586586

587587

588588
Using text nodes in a condition
@@ -624,7 +624,7 @@ But using the ``.`` to mean the node, works::
624624
>>> sel.xpath("//a[contains(., 'Next Page')]").getall()
625625
['<a href="#">Click here to go to the <strong>Next Page</strong></a>']
626626

627-
.. _`XPath string function`: http://www.w3.org/TR/xpath/#section-String-Functions
627+
.. _`XPath string function`: https://www.w3.org/TR/xpath/#section-String-Functions
628628

629629
Beware of the difference between //node[1] and (//node)[1]
630630
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

parsel/selector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def re(self, regex, replace_entities=True):
273273
will be compiled to a regular expression using ``re.compile(regex)``.
274274
275275
By default, character entity references are replaced by their
276-
corresponding character (except for ``&amp;`` and ``&lt;``.
276+
corresponding character (except for ``&amp;`` and ``&lt;``).
277277
Passing ``replace_entities`` as ``False`` switches off these
278278
replacements.
279279
"""
@@ -286,7 +286,7 @@ def re_first(self, regex, default=None, replace_entities=True):
286286
the argument is not provided).
287287
288288
By default, character entity references are replaced by their
289-
corresponding character (except for ``&amp;`` and ``&lt;``.
289+
corresponding character (except for ``&amp;`` and ``&lt;``).
290290
Passing ``replace_entities`` as ``False`` switches off these
291291
replacements.
292292
"""

0 commit comments

Comments
 (0)