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 hashes)

Uploaded Python 3

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