Decolorized (purified, low anthraquinone) whole leaf Aloe vera (L.) Burm. Juice was administered at concentrations of 0%, 0.5%, 1% and 2% in the drinking water of F344Du® rats for 3 months without any adverse effect. The no-observed-adverse-effect level (NOAEL) in this study was considered to be 2% w/v (1845 mg/kg bodyweight/day for males and 2920 mg/kg bodyweight for females).
![](/uploads/1/2/6/5/126592659/407372973.png)
pypm install leaf
How to install leaf
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install leaf
Python 2.7 | Python 3.2 | Python 3.3 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Windows (32-bit) |
|
|||||||||
Windows (64-bit) |
|
|||||||||
Mac OS X (10.5+) |
|
|||||||||
Linux (32-bit) |
|
|||||||||
Linux (64-bit) |
|
Links
Author
License
Dependencies
Imports
Lastest release
Leaf
What is this?
![Leaf Leaf](https://cdn6.aptoide.com/imgs/a/9/b/a9bb1341f396c38582499a64ad44bac6_screen_1024x640.png)
This is a simple wrapper around lxml, which adds some nice features,which make work with lxml better. This library covers all my needs inhtml parsing.
Features
- Nice jquery-like css selectors
- Simple access to element attributes
- Easy way for convert html to other format (bbcode, markdown, etc)
- Few nice functions for work with text
- And, of course this saves all original features of lxml
Description
Main function of module (as I mind) is leaf.parse, this function takes string withhtml as an argument, and returns leaf.Parser object, which wraps lxml object.With this object you can do anything you want, like this:
Or you can do this:
And you can get attributes from these results like this:
Anyway, you can use standard lxml methods like object.xpath, and they returns resultswrapped into leaf.Parser.So, my favorite feature is parsing html into bbcode (markdown, etc):
This function will be recursively called with element and children (this is string withchildren parsing result).So, lets call this parser in some leaf.Parser object:
More detailed examples availible in the tests.
Finally, this library has some nice functions for work with text:
to_unicode -- Convert string to unicode string
strip_accents -- Strip accents from a string
strip_symbols -- Strip ugly unicode symbols from a string
strip_spaces -- Strip excess spaces from a string
strip_linebreaks -- Strip excess line breaks from a stringChange log
System Message: WARNING/2 (<string>, line 74)
Title underline too short.
0.4.4
-
fix inner_html method
-
added **kwargs to the parse function, added inner_html method to the Parser classSystem Message: WARNING/2 (<string>, line 79); backlinkInline strong start-string without end-string.
-
cssselect in deps
0.4.2
- Node attribute modification via node.href = '/blah'
- Custom default value for get: document.get(selector, default=None)
- Get element by index: document.get(selector, index)
0.4.1
- bool(node) returns True if element exists and False if element is None
![](/uploads/1/2/6/5/126592659/407372973.png)