HTML for humans.
Project description
innerhtml
HTML for humans.
Authors
Installation
Install innerhtml with pip
# Linux/macOS
python3 -m pip install -U innerhtml
# Windows
py -3 -m pip install -U innerhtml
Usage/Examples
import requests
from innerhtml import parse
response = get("https://articoff.github.io/eggs/")
page = parse(response.content)
for element in page.elements:
if element._type == "h1":
print(element.content)
from innerhtml import parseHtml
with open("index.html", "r") as file:
page = parseHtml(file)
file.close()
for element in page.elements:
if element._type == "h1":
print(element.content)
Feedback
If you have any feedback, please reach out to us on our discord
Links
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for innerhtml-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb34a7ec34e8282d034d4a6cbee595021ecb24898200095e8c01416e6e456fb |
|
MD5 | f338770e13861b193d76b8f02c015fad |
|
BLAKE2b-256 | eb28d9984044b98cf6db80f87d97fc88eb68426b3dce4dd367ffb280dc3dd0f2 |