Skip to content

Commit

Permalink
fix docs references
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed May 8, 2024
1 parent 27c9919 commit 852bbef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ pseudo-elements::
To extract all text of one or more element and all their child elements,
formatted as plain text taking into account HTML tags (e.g. ``<br/>`` is
translated as a line break), set ``text=True`` in your call to
:meth:`~Selector.get` or :meth:`~Selector.getall` instead of including
:meth:`~parsel.selector.Selector.get` or
:meth:`~parsel.selector.Selector.getall` instead of including
``::text`` (CSS) or ``/text()`` (XPath) in your query::

>>> selector.css('#images').get(text=True)
'Name: My image 1\nName: My image 2\nName: My image 3\nName: My image 4\nName: My image 5'

See :meth:`Selector.get` for additional parameters that you can use to change
See :meth:`Selector.get` for additional parameters that you can use to change
how the extracted plain text is formatted.

As you can see, ``.xpath()`` and ``.css()`` methods return a
Expand Down

0 comments on commit 852bbef

Please sign in to comment.