selection 0.0.6
pip install selection==0.0.6
Newer version available (0.0.21)
Released:
API to extract content from HTML & XML documents
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: MIT
- Author: Gregory Petukhov
Project description
API to extract data from HTML and XML documents.
Usage Example
Example:
from selection import XpathSelector from lxml.html import fromstring html = '<div><h1>test</h1><ul id="items"><li>1</li><li>2</li></ul></div>' sel = XpathSelector(fromstring(html)) print(sel.select('//h1')).text() print(sel.select('//li').text_list() print(sel.select('//ul').attr('id')
Dependencies
lxml
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: MIT
- Author: Gregory Petukhov
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file selection-0.0.6.tar.gz
.
File metadata
- Download URL: selection-0.0.6.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
05f1d70b8bdd3b19511f1ced8d9b666a93a202f9bbf587296ce24bf987273f0a
|
|
MD5 |
567fec3695b0ddcb407251c422c4c2b8
|
|
BLAKE2b-256 |
958de62d36f3aaa69c88697dd9c6978f3aaa0bb7aa2fe0828c50fac309ccc1d4
|