Parslepy

Latest version: v0.3.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

----------------------------------

* Improvements:
* CSS selectors extensions:
* pseudo-elements ``::text`` (borrowed from Scrapy) and ``::comment``
* functional pseudo-element ``::attr(name)``
* Cleaned up documentation (thanks eliasdorneles!)
* New ``keys()`` method for ``Parselet`` nodes

0.2.0

---------------------------------

* Improvements:
* Support XPath namespace prefixes (``namespace:element``) and CSS namespace
prefixes (``namespace|element``) in DefaultSelectorHandler
* new built-in extension function ``parslepy:strip()`` mapped
to Python's strip() for strings
* new built-in extension function ``parslepy:attrname()``
that takes an attribute selector and returns the attribute's name
* support for user-defined extension functions, which take an additional
context parameter when called (context is passed either at selector
handler instantiation or when calling Parselet.parse())
* use ``smart_strings=False`` for XPath compiled expressions,
except for user-defined extensions and some built-in extensions
(see http://lxml.de/xpathxslt.htmlxpath-return-values)

* Bug fixes:
* 2: XPath namespace prefixes raise cssselect.xpath.ExpressionError
with DefaultSelectorHandler
* 3: Docs suggest using \*.js files when they are JSON documents
* 4: The example usage should not have both url_css and url_xpath
* 5: In example usage, skip lines between "configuration" and "execution"
* 6: add underscore to _version__
* 7: Empty result set on boolean or numerical selectors

0.1.2

-----------------------------

* Bug fixes:
* 1: headingxpath rule does not seem to work as expected

0.1.1

-----------------------------

* Docstrings added to main classes and methods.
* Added parse_fromstring() method to Parselet
* Added tests for Parselet.parse() and Parselet.parse_fromstring()

0.1

---------------------------

Initial release

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.