Purify HTML by filtering tags and classes
Project description
PureHTML
Purify HTML by filtering tags and classes
Install
pip install --upgrade purehtml
Usage
from purehtml import purify_html_files
from pathlib import Path
html_root = Path(__file__).parent / "samples"
html_paths = list(html_root.glob("*.html"))
html_path_and_purified_content_list = purify_html_files(html_paths)
for item in html_path_and_purified_content_list:
html_path = item["html_path"]
purified_content = item["purified_content"]
print(html_path)
print(purified_content)
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 Distribution
purehtml-0.5.1.tar.gz
(6.1 kB
view hashes)