pyhtmlinfo is a python library it can be used to get html tags and description
Project description
Pyhtmlinfo
Pyhtmlinfo is a python library that can be used to learn about html tags you can get info about latest tags and deprecated tags too
Installation
- Using PyPi
python pip install pyhtmlinfo
- Using this Github Repo
python pip install git+https://github.com/amr2018/pyhtmlinfo.git
Examples
from pyhtmlinfo import HtmlInfo
html_info = HtmlInfo()
tags_list = html_info.all_tags(deprecated=True) # Returns all tags, set deprecated False to return only working tags.
tag = html_info.name_to_tag('h1') # --> <h1>
tag_name = html_info.tag_to_name('<h1>') # --> h1
tag_description = html_info.tag_description('<img>') # --> The <img> HTML element embeds an image into the document.
is_tag = html_info.is_html_tag('<h1>') # --> True
is_deprecated = html_info.is_deprecated('acronym') # --> True
Credits
- Tags and Description from developer.mozilla.org
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhtmlinfo-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyhtmlinfo-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c163f948fc957067835dcb4a6f2925e70e78b949b25a2c02cdf975039019d2
|
|
| MD5 |
044a32f7fe4eafef19e2df03805ba307
|
|
| BLAKE2b-256 |
a73b7caaf4475c65f82c824598c4c702e253f8e441940d88c1cdd15cefe461af
|