Skip to main content

A Python module to simply extract metadata (title, description, image, favicon) of a webpage

Project description

PyWebInfo

Static Badge PyPI - Version

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:

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

MIT © Kaustubh Prabhu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywebinfo-1.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebinfo-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pywebinfo-1.0.2.tar.gz.

File metadata

  • Download URL: pywebinfo-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pywebinfo-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b1e3a780abd332fe103afb8cfa68a90451eacb959bc18b54714f8fbaa0206077
MD5 44086d85ae5e7b7998d2d8d5a3569097
BLAKE2b-256 295d5580edf6f81e09aaa5495956968eaba3c6be4690aa6ec979026a214c27d1

See more details on using hashes here.

File details

Details for the file pywebinfo-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pywebinfo-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pywebinfo-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 918329157379f6fb85382691d53bab553e130453ae475e9d84991a08a8621225
MD5 c63183cad369be0cc65295d180721e04
BLAKE2b-256 9f8b31a41afa5c564b8ea1174fe90a5355c65933b61a083552e1f86c8d38a909

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page