API to describe schema of data to extract them from HTML
Project description
Usage Example
from item import Item from lxml.html import fromstring class SomeStructure(Item): id = IntegerField('//path/to/@id') name = StringField('//path/to/name') date = DateTimeField('//path/to/@datetime', '%Y-%m-%d %H:%M:%S') structure = SomeStructure(fromstring(SOME_HTML)) print(structure.id) print(structure.name) print(structure.date)
Installation
pip install item
Project details
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size item-0.0.3.tar.gz (7.6 kB) | File type Source | Python version None | Upload date | Hashes View |