Constractor (derived from “Content Extractor’) allows one to use machine learning for web pages content extraction. Library provide following functionality:
Extendable features api.
Gui tools for simple train-set creation.
Simple training and testing process.
Simple usage of trained model.
Models dumping.
etc
Installation
NOTE: Project was developed and tested under Ubuntu 12.04. Other operation systems may require enhancements of library.
Ubuntu >=12.04 instructions:
Install apt dependecies: sudo apt-get install pip gcc g++ python-dev python-qt4
Install constractor: sudo pip install constractor
Usage
Following code will run gui train helper:
#!/usr/bin/env python
from constractor.train import GuiTrainer
if __name__ == '__main__':
GuiTrainer()
And following code will print html of predicted element in DOM:
#!/usr/bin/env python
from constractor.parser import Parser
if __name__ == '__main__':
predicted = Parser('https://pypi.python.org', model_file='model.txt').predicted
for element in predicted:
print unicode(element.toInnerXml()).encode('utf-8')
Contribution
Project is completely open for contribution. See more on bitbucket repo: https://bitbucket.org/dkuryakin/constractor
Metadata
Release files for constractor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| constractor-0.1.0.tar.gz | 10.1 kB | Without provenance | Details |
Release files / constractor-0.1.0.tar.gz
| Download URL | constractor-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc5ed87c49f9f334ffbe19f773881c919f8843dde9ce1e49a5d2d41b6ccec345
|
|
BLAKE2b-256 checksum How to use checksums |
d6769ca8b9a73de04f0ec53cccff7e648df8186198e2f197bba04692e6052738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for constractor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.