Skip to main content

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


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

innerhtml-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file innerhtml-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: innerhtml-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for innerhtml-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb34a7ec34e8282d034d4a6cbee595021ecb24898200095e8c01416e6e456fb
MD5 f338770e13861b193d76b8f02c015fad
BLAKE2b-256 eb28d9984044b98cf6db80f87d97fc88eb68426b3dce4dd367ffb280dc3dd0f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page