Skip to main content

HTML for NLP

Installation

pip install git+https://github.com/druskacik/html_for_nlp

Usage

import requests
from html_for_nlp import HTMLDocument

r = requests.get('https://google.com')

doc = HTMLDocument(r.content)

print(doc.full_text)

Output:

<[document]>
Google
Vyhľadávanie
<a>
Obrázky
</a>
<a>
Mapy
</a>
<a>
Play
</a>
<a>
YouTube
</a>
<a>
Správy
</a>
<a>
Gmail
</a>
<a>
Disk
</a>
<a>
Ďalšie
»
</a>
<a>
História hľadania
</a>
|
<a>
Nastavenia
</a>
|
<a>
Prihlásiť sa
</a>
<a>
Rozšírené vyhľadávanie
</a>
<span>
<a>
Reklama
</a>
<a>
Riešenia pre firmy
</a>
<a>
Všetko o Google
</a>
<a>
Google.sk
</a>
<p>
© 2023
</p>
</span>
</[document]>

Metadata

Release files for html-for-nlp 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for html-for-nlp 0.0.2
File Size Uploaded Provenance Actions
html_for_nlp-0.0.2.tar.gz 3.4 kB Without provenance Details for html_for_nlp-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for html-for-nlp 0.0.2
File Interpreter ABI Platform Actions
html_for_nlp-0.0.2-py3-none-any.whl Python 3 none any Details for html_for_nlp-0.0.2-py3-none-any.whl

Total release size: 7.0 kB

Release files / html_for_nlp-0.0.2.tar.gz

Download URL html_for_nlp-0.0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
21bd072f010c5334a44b35737fd047fc9a893337d715d53f54a1382f9954d879
BLAKE2b-256 checksum
How to use checksums
c222936b373df4a77c61fecf88436da11fdab3c90bcfc614e47384d7ef250925
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / html_for_nlp-0.0.2-py3-none-any.whl

Download URL html_for_nlp-0.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2961cc618096bc02076950b0454f0a303d57c8753a0280a69c6d5ebb3935c8e
BLAKE2b-256 checksum
How to use checksums
3713b95c952ec1a42bf4192ab9573f0df69307e854002c77e40f58043d33a5f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for html-for-nlp 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page