Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-27 20:26:55 -05:00
parent 7cd449d920
commit 25fb97f31e
+6 -1
View File
@@ -71,11 +71,16 @@ class BaseParser:
@property
def pq(self) -> PyQuery:
"""PyQuery representation of the :class:`Element <Element>` or :class:`HTML <HTML>`."""
"""`PyQuery <https://pythonhosted.org/pyquery/>`_ representation
of the :class:`Element <Element>` or :class:`HTML <HTML>`.
"""
return PyQuery(self.element)
@property
def lxml(self) -> HtmlElement:
"""`lxml <http://lxml.de>`_ representation of the
:class:`Element <Element>` or :class:`HTML <HTML>`.
"""
return fromstring(self.html)
@property