Extract from html
What it does
Extracts the following from html:
- urls
- emails
- images
- tables
- structured data (schema.org)
- text
- title
- feeds
How to use
Using the api
Send a url (get)
Send the url as a query parameter 'url'. Will retrieve the content and return extracted data. If 'contentUrl' provided, will use the content from 'contentUrl' but use 'url' as attributes
Send a WebContent object (post)
The content will be extracted from either the 'text' field or it will retrieve the content from the url in 'archivedAt'.
{
"@type": "webContent",
"url": [
"https://storage.googleapis.com/kraken-cdn/641fcdaa9664421b3ac4db2b6b494397bf0dc8d65a559e9c2238de77d09e740e.html"
],
"archivedAt": [
"https://storage.googleapis.com/kraken-cdn/641fcdaa9664421b3ac4db2b6b494397bf0dc8d65a559e9c2238de77d09e740e.html"
],
"about": {
"@type": "webPage",
"url": "https://www.petro-canada.ca/en/business/rack-prices"
}
}
Using the library
Provided url of the page and html content, returns list of records with extractions.
from kraken_extract_from_html import kraken_extract_from_html as k
records = k.get(url, html)
Metadata
Release files for kraken-extract-from-html 0.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kraken-extract-from-html-0.0.21.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kraken_extract_from_html-0.0.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / kraken-extract-from-html-0.0.21.tar.gz
| Download URL | kraken-extract-from-html-0.0.21.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7385d9afcfed3343346a51634bf1a00d15bd9dc5d692fac04ab582261ebbf53
|
|
BLAKE2b-256 checksum How to use checksums |
7857e5f4e5de4610879acf79f66e27b0599584b32f197517514c2fe6d70d5303
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / kraken_extract_from_html-0.0.21-py3-none-any.whl
| Download URL | kraken_extract_from_html-0.0.21-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fec384a162812b09a17c3451aee396124d80e43dee31d6c9c3548c540965b4dd
|
|
BLAKE2b-256 checksum How to use checksums |
6ca49801c38761c97da184d3ff40e92873e4a6402d16d052d71f54d65bc21f2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|