mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 06:46:14 +00:00
Add "lineno" attribute for Element object
This commit is contained in:
@@ -110,6 +110,13 @@ Crab an :class:`Element <Element>`'s root tag name:
|
||||
>>> about.tag
|
||||
'li'
|
||||
|
||||
Show the line number that an :class:`Element <Element>`'s root tag located in:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> about.lineno
|
||||
249
|
||||
|
||||
Select an :class:`Element <Element>` list within an :class:`Element <Element>`:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
Reference in New Issue
Block a user