https://github.com/kaustubhrprabhu/pywebinfo
A Python package to simply extract metadata (title, description, image, favicon) of a webpage
https://github.com/kaustubhrprabhu/pywebinfo
metadata module python web
Last synced: 5 months ago
JSON representation
A Python package to simply extract metadata (title, description, image, favicon) of a webpage
- Host: GitHub
- URL: https://github.com/kaustubhrprabhu/pywebinfo
- Owner: kaustubhrprabhu
- License: mit
- Created: 2024-08-21T19:59:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T16:50:38.000Z (almost 2 years ago)
- Last Synced: 2025-09-01T21:55:07.677Z (10 months ago)
- Topics: metadata, module, python, web
- Language: Python
- Homepage: https://pypi.org/project/pywebinfo/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyWebInfo


**pywebinfo** is a simple and easy-to-use Python module 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 (not recommended). To install the current release:
```bash
pip install pywebinfo
```
## Usage
Minimal Example:
```python
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
[MIT](LICENSE) © [Kaustubh Prabhu](https://github.com/kaustubhrprabhu)