Skip to main content

The wsinfo library

Travis CI test status Code health Version Monthly downloads Documentation

wsinfo (short for website information) is a Python package for getting some useful information about some website, without the need to write some complicated hackish Python code.

Requirements

The package is compatible with both Python 2 and 3, so everything you need is a recent Python installation.

Installation

The wsinfo library is available on PyPI, so you can install it using pip:

pip install wsinfo

Usage

The usage of the wsinfo library is as easy as:

>>> import wsinfo
>>> w = wsinfo.Info("https://github.com")
>>> w.ip
'192.30.253.112'
>>> w.http_status_code
200
>>> w.title
'How people build software · GitHub'
>>> w.content
'<!DOCTYPE html>\n<html>\n[...]\n</html>'

Documentation

The latest documentation is always available here: https://wsinfo.readthedocs.io/en/latest/

Tested Platforms and Python Versions

The code was tested on all major platforms using a wide range of Python versions.

If you experience some issues, feel free to contact me or open an issue on GitHub.

Changes

1.3.0

  • Added properties: content_type, http_header_dict and server_os

  • Correct handling of HTTP Errors (retrieve error page)

  • Documentation updates

  • Code cleanup

  • Minor fixes and improvements

1.2.0

1.1.0

  • Added function to list a websites heading structure

  • Documentation improvements

  • Code formatting

  • Minor improvements

  • Added/extended project infrastructure:

    • GitHub

    • PyPI

    • TravisCI

    • Landscape

1.0.0

  • Initial release

Download files

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

Source Distribution

wsinfo-1.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

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

wsinfo-1.3.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

wsinfo-1.3.0-py2-none-any.whl (7.7 kB view details)

Uploaded Python 2

File details

Details for the file wsinfo-1.3.0.tar.gz.

File metadata

  • Download URL: wsinfo-1.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsinfo-1.3.0.tar.gz
Algorithm Hash digest
SHA256 8b7ee50182631cabe526da0f75312580688c93a4f97ef868ad7e69678994412c
MD5 e3b802562a5bfd0c0e743feb20113fba
BLAKE2b-256 87fd0173a09527b5453259bee83dd51a0a45d13282c1430904fb4906fd7cf27e

See more details on using hashes here.

File details

Details for the file wsinfo-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wsinfo-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc1bad4af528ab5b51af15f0aef74537b48690ebcfb70d4550fb132ce0a156d
MD5 c19a16744cebe1e7a2c00c3941eda789
BLAKE2b-256 16d0d51c9df15f665c57c871f71f2581af73d27c461fb232c5051e6cd5960149

See more details on using hashes here.

File details

Details for the file wsinfo-1.3.0-py2-none-any.whl.

File metadata

File hashes

Hashes for wsinfo-1.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 eb8db097474a1e882513a810fd1ad9ee282d646195bc8e8cf91906c5a4d30dc3
MD5 f21984d61fab73ae69835ba9b3bc786d
BLAKE2b-256 730ad1151b198ada5d29941ab001f4040daa64dde4b11b22289420a1559d10d9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

3 files

1.2.0

3 files

1.1.1

3 files

1.0.0

3 files

Supported by

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