selectorlib 0.16.0
pip install selectorlib
Latest version
Released:
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
Navigation
Unverified details
These details havenot been verified by PyPIProject links
Meta
- License: MIT License (MIT license)
- Author:scrapehero
- Tags selectorlib
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Programming Language
Project description
selectorlib
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
Free software: MIT license
Documentation:https://selectorlib.readthedocs.io.
Example
>>> from selectorlib import Extractor>>> yaml_string = """ title: css: "h1" type: Text link: css: "h2 a" type: Link """>>> extractor = Extractor.from_yaml_string(yaml_string)>>> html = """ <h1>Title</h1> <h2>Usage <a href="http://test">¶</a> </h2> """>>> extractor.extract(html){'title': 'Title', 'link': 'http://test'}History
Project details
Unverified details
These details havenot been verified by PyPIProject links
Meta
- License: MIT License (MIT license)
- Author:scrapehero
- Tags selectorlib
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Programming Language
Release historyRelease notifications |RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more aboutinstalling packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more aboutwheel file names.
Copy a direct link to the current filters
File details
Details for the fileselectorlib-0.16.0.tar.gz.
File metadata
- Download URL:selectorlib-0.16.0.tar.gz
- Upload date:
- Size: 188.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 154f7c5f39bc825a0717b24ca2cc0b95dcb2caa1669239f3d4ac6e41af398731 | |
| MD5 | da86499c58c7e12a63e77ab592240e61 | |
| BLAKE2b-256 | 0057f1ae8c2740980eec4a142fd8b1f6603294bba079add5e29bf62f51503c96 |
File details
Details for the fileselectorlib-0.16.0-py2.py3-none-any.whl.
File metadata
- Download URL:selectorlib-0.16.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 007c156d01ab8de86f72f0914d66d704f6fb4ebda0db0e04f204083d63e55bc6 | |
| MD5 | 8aa1a3ca4568c3d278192b6d8766f1e9 | |
| BLAKE2b-256 | 1e3e7ad0a01b07c066cf79c431324970869345e4d249242d70f20e939a5c630b |