pyseoanalyzer


Namepyseoanalyzer JSON
Version 2024.4.21 PyPI version JSON
download
home_pageNone
SummaryAn SEO tool that analyzes the structure of a site, crawls the site, count words in the body of the site and warns of any technical SEO issues.
upload_time2024-04-21 17:58:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseCopyright 2012-2021 Seth Black. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of Seth Black may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords crawler scraper search engine optimization seo site analyzer site crawler site parser website parser
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Python SEO Analyzer
===================

[![Googling Google by taleas.com](https://www.taleas.com/static/images/comics/googling-google.jpg "Googling Google by taleas.com")](https://www.taleas.com/comics/googling-google.html)

An SEO tool that analyzes the structure of a site, crawls the site, counts words in the body of the site and warns of any technical SEO issues.

Requires Python 3.6+, BeautifulSoup4 and urllib3.

Installation
------------

### PIP

```
pip3 install pyseoanalyzer
```

### Docker

```
docker run sethblack/python-seo-analyzer [ARGS ...]
```

Command-line Usage
------------------

If you run without a sitemap it will start crawling at the homepage.

```sh
seoanalyze http://www.domain.com/
```

Or you can specify the path to a sitmap to seed the urls to scan list.

```sh
seoanalyze http://www.domain.com/ --sitemap path/to/sitemap.xml
```

HTML output can be generated from the analysis instead of json.

```sh
seoanalyze http://www.domain.com/ --output-format html
```

API
---

The `analyze` function returns a dictionary with the results of the crawl.

```python
from seoanalyzer import analyze

output = analyze(site, sitemap)

print(output)
```

In order to analyze heading tags (h1-h6) and other extra additional tags as well, the following options can be passed to the `analyze` function
```python
from seoanalyzer import analyze

output = analyze(site, sitemap, analyze_headings=True, analyze_extra_tags=True)

print(output)
```

By default, the `analyze` function analyzes all the existing inner links as well, which might be time consuming.
This default behaviour can be changed to analyze only the provided URL by passing the following option to the `analyze` function
```python
from seoanalyzer import analyze

output = analyze(site, sitemap, follow_links=False)

print(output)
```

Alternatively, you can run the analysis as a script from the seoanalyzer folder.

```sh
python -m seoanalyzer https://www.sethserver.com/ -f html > results.html
```

Notes
-----

If you get `requests.exceptions.SSLError` at either the command-line or via the python-API, try using:
 - http://www.foo.bar
 
 **instead** of..
 
 -  https://www.foo.bar

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyseoanalyzer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "crawler, scraper, search engine optimization, seo, site analyzer, site crawler, site parser, website parser",
    "author": null,
    "author_email": "Seth Black <sblack@sethserver.com>",
    "download_url": "https://files.pythonhosted.org/packages/85/bd/8390e1bac97c9c8f71f11d550f896f55f89eae7c5d7403946a8f4929b9e4/pyseoanalyzer-2024.4.21.tar.gz",
    "platform": null,
    "description": "Python SEO Analyzer\n===================\n\n[![Googling Google by taleas.com](https://www.taleas.com/static/images/comics/googling-google.jpg \"Googling Google by taleas.com\")](https://www.taleas.com/comics/googling-google.html)\n\nAn SEO tool that analyzes the structure of a site, crawls the site, counts words in the body of the site and warns of any technical SEO issues.\n\nRequires Python 3.6+, BeautifulSoup4 and urllib3.\n\nInstallation\n------------\n\n### PIP\n\n```\npip3 install pyseoanalyzer\n```\n\n### Docker\n\n```\ndocker run sethblack/python-seo-analyzer [ARGS ...]\n```\n\nCommand-line Usage\n------------------\n\nIf you run without a sitemap it will start crawling at the homepage.\n\n```sh\nseoanalyze http://www.domain.com/\n```\n\nOr you can specify the path to a sitmap to seed the urls to scan list.\n\n```sh\nseoanalyze http://www.domain.com/ --sitemap path/to/sitemap.xml\n```\n\nHTML output can be generated from the analysis instead of json.\n\n```sh\nseoanalyze http://www.domain.com/ --output-format html\n```\n\nAPI\n---\n\nThe `analyze` function returns a dictionary with the results of the crawl.\n\n```python\nfrom seoanalyzer import analyze\n\noutput = analyze(site, sitemap)\n\nprint(output)\n```\n\nIn order to analyze heading tags (h1-h6) and other extra additional tags as well, the following options can be passed to the `analyze` function\n```python\nfrom seoanalyzer import analyze\n\noutput = analyze(site, sitemap, analyze_headings=True, analyze_extra_tags=True)\n\nprint(output)\n```\n\nBy default, the `analyze` function analyzes all the existing inner links as well, which might be time consuming.\nThis default behaviour can be changed to analyze only the provided URL by passing the following option to the `analyze` function\n```python\nfrom seoanalyzer import analyze\n\noutput = analyze(site, sitemap, follow_links=False)\n\nprint(output)\n```\n\nAlternatively, you can run the analysis as a script from the seoanalyzer folder.\n\n```sh\npython -m seoanalyzer https://www.sethserver.com/ -f html > results.html\n```\n\nNotes\n-----\n\nIf you get `requests.exceptions.SSLError` at either the command-line or via the python-API, try using:\n - http://www.foo.bar\n \n **instead** of..\n \n -  https://www.foo.bar\n",
    "bugtrack_url": null,
    "license": "Copyright 2012-2021 Seth Black. All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. The name of Seth Black may not be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "An SEO tool that analyzes the structure of a site, crawls the site, count words in the body of the site and warns of any technical SEO issues.",
    "version": "2024.4.21",
    "project_urls": {
        "Homepage": "https://github.com/sethblack/python-seo-analyzer",
        "Issues": "https://github.com/sethblack/python-seo-analyzer/issues",
        "Repository": "https://github.com/sethblack/python-seo-analyzer.git"
    },
    "split_keywords": [
        "crawler",
        " scraper",
        " search engine optimization",
        " seo",
        " site analyzer",
        " site crawler",
        " site parser",
        " website parser"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f07f759ef58dd176d3bdf467ce98612c3817ce1001a10af83bf96b865bfc2429",
                "md5": "bb564895ee5cef0e2c192af6693c7c2a",
                "sha256": "a698b33113201e4d41abcf3fb4c0d0e3f40979f88e0fdfacbb8bc917805f7598"
            },
            "downloads": -1,
            "filename": "pyseoanalyzer-2024.4.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb564895ee5cef0e2c192af6693c7c2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16154,
            "upload_time": "2024-04-21T17:58:51",
            "upload_time_iso_8601": "2024-04-21T17:58:51.287158Z",
            "url": "https://files.pythonhosted.org/packages/f0/7f/759ef58dd176d3bdf467ce98612c3817ce1001a10af83bf96b865bfc2429/pyseoanalyzer-2024.4.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85bd8390e1bac97c9c8f71f11d550f896f55f89eae7c5d7403946a8f4929b9e4",
                "md5": "b659bc94d7a9d982d87f41015e9e5f79",
                "sha256": "3e6da9e67d3f33879ed2213c78b5f19f5cd1a1017ff622c673aad377cfe217d1"
            },
            "downloads": -1,
            "filename": "pyseoanalyzer-2024.4.21.tar.gz",
            "has_sig": false,
            "md5_digest": "b659bc94d7a9d982d87f41015e9e5f79",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4265109,
            "upload_time": "2024-04-21T17:58:53",
            "upload_time_iso_8601": "2024-04-21T17:58:53.099640Z",
            "url": "https://files.pythonhosted.org/packages/85/bd/8390e1bac97c9c8f71f11d550f896f55f89eae7c5d7403946a8f4929b9e4/pyseoanalyzer-2024.4.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-21 17:58:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sethblack",
    "github_project": "python-seo-analyzer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyseoanalyzer"
}
        
Elapsed time: 0.26561s