Skip to main content

Python package for simply retrieving information about a specific website.

Project description

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

Project details


Release history Release notifications

This version
History Node

1.3.0

History Node

1.2.0

History Node

1.1.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
wsinfo-1.3.0-py2-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 Sep 15, 2016
wsinfo-1.3.0-py3-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel 3.5 Sep 15, 2016
wsinfo-1.3.0.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None Sep 15, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page