A Python package to simply extract metadata (title, description, image, favicon) of a webpage
Project description
PyWebInfo
pywebinfo is a simple and easy-to-use Python package to extract metadata from a web page, ideal for the cards/previews of webpages within web applications.
Installation
Currently pywebinfo supports Python 3.10 and onwards; Python 2 is not supported. To install the current release:
pip install pywebinfo
Usage
Minimal Example:
from pywebinfo import PyWebInfo
pwi = PyWebInfo("https://www.python.org/")
# Title of the webpage | None
print(pwi.title)
# Description of the webpage | None
print(pwi.description)
# URL of webpage image | None
print(pwi.image)
# favicon of the webpage | None
print(pwi.favicon)
# URL
print(pwi.url)
License
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
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 pywebinfo-1.0.1.tar.gz.
File metadata
- Download URL: pywebinfo-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8892b10aab9e2a478da5735b0e852b75c868dfa413c880afd306a06ed26e352
|
|
| MD5 |
38a4cba754ca05061d248c3b5d4d2249
|
|
| BLAKE2b-256 |
88579f2462363a45b1bba5bd2af423f8e9f57d85a61aab4bd871ddbdafe8fc20
|
File details
Details for the file pywebinfo-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pywebinfo-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e7657c5a5e5417422dfa2bef7bb3d21583f176a6695c9692aeacb53f77e1ee
|
|
| MD5 |
d79f8c2f4422e97095054cd47d7cf43d
|
|
| BLAKE2b-256 |
26213e1888c310a24c918a932c61be6e0bbb4bf9688cdb801a9546222f8d3f23
|