The wsinfo library
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
Hosted docs on readthedocs.io
Minor documentation changes
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
Metadata
Release files for wsinfo 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wsinfo-1.3.0.tar.gz | 5.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wsinfo-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
| wsinfo-1.3.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 21.2 kB
Release files / wsinfo-1.3.0.tar.gz
| Download URL | wsinfo-1.3.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b7ee50182631cabe526da0f75312580688c93a4f97ef868ad7e69678994412c
|
|
BLAKE2b-256 checksum How to use checksums |
87fd0173a09527b5453259bee83dd51a0a45d13282c1430904fb4906fd7cf27e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsinfo-1.3.0-py3-none-any.whl
| Download URL | wsinfo-1.3.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cc1bad4af528ab5b51af15f0aef74537b48690ebcfb70d4550fb132ce0a156d
|
|
BLAKE2b-256 checksum How to use checksums |
16d0d51c9df15f665c57c871f71f2581af73d27c461fb232c5051e6cd5960149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsinfo-1.3.0-py2-none-any.whl
| Download URL | wsinfo-1.3.0-py2-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
eb8db097474a1e882513a810fd1ad9ee282d646195bc8e8cf91906c5a4d30dc3
|
|
BLAKE2b-256 checksum How to use checksums |
730ad1151b198ada5d29941ab001f4040daa64dde4b11b22289420a1559d10d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |