sitesniffer


Namesitesniffer JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttps://github.com/thisisjsimon/SiteSniffer
SummaryThis is a Python script that can extract various information about a website, including its IP address, SSL certificate information, domain information, page load time, and other useful insights.
upload_time2023-04-17 13:18:00
maintainer
docs_urlNone
authorJonah Simon
requires_python>=3.11
licenseMIT
keywords sniffing site sniffing website sniffing ip address ssl certificate domain website
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Site Sniffer in Python 🐽

[![PyPi version](https://img.shields.io/pypi/v/sitesniffer)](https://pypi.org/project/sitesniffer/)
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
[![PyPi downloads](https://img.shields.io/pypi/dm/sitesniffer)](https://pypi.org/project/sitesniffer/)
[![Github commits](https://img.shields.io/github/commit-activity/m/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer/commits/main)
[![Github contributors](https://img.shields.io/github/contributors/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer/graphs/contributors)
[![Code size](https://img.shields.io/github/languages/code-size/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


Site Sniffer is a Python package designed to extract information about a website by providing its URL. It is useful for individuals who need to perform website analysis, including web developers, SEO specialists, and website owners. The package extracts various details such as the IP address, HTTP status code, SSL certificate information, domain registration details, load time, meta description, keywords, and a list of links on the page.

## Installation

Install sitesniffer with pip:

```bash
pip install sitesniffer
```

Alternativly:

```bash
pip install git+https://github.com/thisisjsimon/SiteSniffer.git
```

## Usage

 Make sure that you have installed Python 3.11 before proceeding.
 


To use SiteSniffer, you need to import it first:

```py
from sitesniffer import SiteSniffer
```

Then, create an instance of the SiteSniffer class by providing the URL of the website you want to analyze:

```py
sniffer = SiteSniffer('https://example.com')
```

You can then call the methods of the SiteSniffer object to get various details about the website:

```py
print(sniffer.ip_address())
print(sniffer.domain_info())
print(sniffer.status_code())
# See docs for full list
```

Each of the methods in this package returns the corresponding detail of the website. For example, get_ip_address() returns the IP address of the website.

## Example

```py
from sitesniffer import SiteSniffer

sniffer = SiteSniffer('https://google.com')
print(sniffer.ip_address())
```

### Output

```py
'142.250.185.110'
```

## Essential Python Libraries for Web Scraping and HTTP Requests

The following Python libraries are essential for working with the ``sitesniffer`` package:

```py
# standard library
import re
import socket
import ssl
import time
import typing
import urllib.parse
import dataclasses

# third party
import bs4
import idna
import requests
import whois
```

## Docs

### The defined functions included in ``SiteSniffer``

| Function Name  | Function Description |
| ------------- | ------------- |
| ``extract_protocol`` | Extracts the protocol from the URL. |
| ``extract_hostname`` | Extracts the hostname from the URL. |
| ``extract_path`` | Extracts the path from the URL. |
| ``ip_address`` | Returns the IP address of the domain. |
| ``domain_info`` | Returns the domain information for the website. |
| ``status_code`` | Returns the HTTP status code of the website. |
| ``ssl_info`` | Returns the SSL certificate information for the website. |
| ``load_time`` | Returns the website's load time. |
| ``links`` | Returns a list of links found on the website. |
| ``is_mobile_friendly`` | Checks if the website is mobile-friendly. |
| ``has_responsive_design`` | Checks if the website has a responsive design. |
| ``has_cookies`` | Checks if the website uses cookies. |
| ``has_google_analytics`` | Checks if the website has Google Analytics installed. |
| ``page_meta_description`` | Returns the website's meta description. |
| ``has_meta_description`` | Checks if the website has a meta description. |
| ``page_keywords`` | Returns the website's keywords. |
| ``has_keywords`` | Checks if the website has keywords. |

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thisisjsimon/SiteSniffer",
    "name": "sitesniffer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "sniffing,site sniffing,website sniffing,IP address,SSL certificate,domain,website",
    "author": "Jonah Simon",
    "author_email": "thisisjsimon.github@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fd/36/43f5bdefc4b9a68de88201d4133d4267f7e0347f2c3cf24e02ac21434a43/sitesniffer-0.4.1.tar.gz",
    "platform": null,
    "description": "# Site Sniffer in Python \ud83d\udc3d\n\n[![PyPi version](https://img.shields.io/pypi/v/sitesniffer)](https://pypi.org/project/sitesniffer/)\n[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)\n[![PyPi downloads](https://img.shields.io/pypi/dm/sitesniffer)](https://pypi.org/project/sitesniffer/)\n[![Github commits](https://img.shields.io/github/commit-activity/m/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer/commits/main)\n[![Github contributors](https://img.shields.io/github/contributors/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer/graphs/contributors)\n[![Code size](https://img.shields.io/github/languages/code-size/thisisjsimon/SiteSniffer)](https://github.com/thisisjsimon/SiteSniffer)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\nSite Sniffer is a Python package designed to extract information about a website by providing its URL. It is useful for individuals who need to perform website analysis, including web developers, SEO specialists, and website owners. The package extracts various details such as the IP address, HTTP status code, SSL certificate information, domain registration details, load time, meta description, keywords, and a list of links on the page.\n\n## Installation\n\nInstall sitesniffer with pip:\n\n```bash\npip install sitesniffer\n```\n\nAlternativly:\n\n```bash\npip install git+https://github.com/thisisjsimon/SiteSniffer.git\n```\n\n## Usage\n\n Make sure that you have installed Python 3.11 before proceeding.\n \n\n\nTo use SiteSniffer, you need to import it first:\n\n```py\nfrom sitesniffer import SiteSniffer\n```\n\nThen, create an instance of the SiteSniffer class by providing the URL of the website you want to analyze:\n\n```py\nsniffer = SiteSniffer('https://example.com')\n```\n\nYou can then call the methods of the SiteSniffer object to get various details about the website:\n\n```py\nprint(sniffer.ip_address())\nprint(sniffer.domain_info())\nprint(sniffer.status_code())\n# See docs for full list\n```\n\nEach of the methods in this package returns the corresponding detail of the website. For example, get_ip_address() returns the IP address of the website.\n\n## Example\n\n```py\nfrom sitesniffer import SiteSniffer\n\nsniffer = SiteSniffer('https://google.com')\nprint(sniffer.ip_address())\n```\n\n### Output\n\n```py\n'142.250.185.110'\n```\n\n## Essential Python Libraries for Web Scraping and HTTP Requests\n\nThe following Python libraries are essential for working with the ``sitesniffer`` package:\n\n```py\n# standard library\nimport re\nimport socket\nimport ssl\nimport time\nimport typing\nimport urllib.parse\nimport dataclasses\n\n# third party\nimport bs4\nimport idna\nimport requests\nimport whois\n```\n\n## Docs\n\n### The defined functions included in ``SiteSniffer``\n\n| Function Name  | Function Description |\n| ------------- | ------------- |\n| ``extract_protocol`` | Extracts the protocol from the URL. |\n| ``extract_hostname`` | Extracts the hostname from the URL. |\n| ``extract_path`` | Extracts the path from the URL. |\n| ``ip_address`` | Returns the IP address of the domain. |\n| ``domain_info`` | Returns the domain information for the website. |\n| ``status_code`` | Returns the HTTP status code of the website. |\n| ``ssl_info`` | Returns the SSL certificate information for the website. |\n| ``load_time`` | Returns the website's load time. |\n| ``links`` | Returns a list of links found on the website. |\n| ``is_mobile_friendly`` | Checks if the website is mobile-friendly. |\n| ``has_responsive_design`` | Checks if the website has a responsive design. |\n| ``has_cookies`` | Checks if the website uses cookies. |\n| ``has_google_analytics`` | Checks if the website has Google Analytics installed. |\n| ``page_meta_description`` | Returns the website's meta description. |\n| ``has_meta_description`` | Checks if the website has a meta description. |\n| ``page_keywords`` | Returns the website's keywords. |\n| ``has_keywords`` | Checks if the website has keywords. |\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This is a Python script that can extract various information about a website, including its IP address, SSL certificate information, domain information, page load time, and other useful insights.",
    "version": "0.4.1",
    "split_keywords": [
        "sniffing",
        "site sniffing",
        "website sniffing",
        "ip address",
        "ssl certificate",
        "domain",
        "website"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bbd6db34754d735ef1105e31391487e1f647f0b0f1ef8750c32366e3d2203b0b",
                "md5": "0a90c5721c6bcfb77f76c1bdd2a7f9c9",
                "sha256": "133376afa0a868114a52070a0d7b9b3916c83dd033a51dae51050162f371ecb4"
            },
            "downloads": -1,
            "filename": "sitesniffer-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a90c5721c6bcfb77f76c1bdd2a7f9c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 9023,
            "upload_time": "2023-04-17T13:17:58",
            "upload_time_iso_8601": "2023-04-17T13:17:58.152295Z",
            "url": "https://files.pythonhosted.org/packages/bb/d6/db34754d735ef1105e31391487e1f647f0b0f1ef8750c32366e3d2203b0b/sitesniffer-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd3643f5bdefc4b9a68de88201d4133d4267f7e0347f2c3cf24e02ac21434a43",
                "md5": "e0ea60741e21105cc9cbee3119e5bb8e",
                "sha256": "1b7e24bf7b7dd5e3f6b59fa7bafd7525e07311530228ce9eaadf07560236fd0b"
            },
            "downloads": -1,
            "filename": "sitesniffer-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e0ea60741e21105cc9cbee3119e5bb8e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 9278,
            "upload_time": "2023-04-17T13:18:00",
            "upload_time_iso_8601": "2023-04-17T13:18:00.660140Z",
            "url": "https://files.pythonhosted.org/packages/fd/36/43f5bdefc4b9a68de88201d4133d4267f7e0347f2c3cf24e02ac21434a43/sitesniffer-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-17 13:18:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "thisisjsimon",
    "github_project": "SiteSniffer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "sitesniffer"
}
        
Elapsed time: 0.07259s