Skip to main content

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.

Project description

Python SEO Analyzer

Googling Google by taleas.com

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.

seoanalyze http://www.domain.com/

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

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

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

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

API

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

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

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

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.

python analyzer.py 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:

instead of..

Project details


Download files

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

Source Distribution

pyseoanalyzer-4.0.7.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

pyseoanalyzer-4.0.7-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pyseoanalyzer-4.0.7.tar.gz.

File metadata

  • Download URL: pyseoanalyzer-4.0.7.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pyseoanalyzer-4.0.7.tar.gz
Algorithm Hash digest
SHA256 c2f085f58b3d4dc3edc6c002c50330d2515c848191900270d95dbc50b7715724
MD5 f6b7548d9234114240ae5cb399ad8022
BLAKE2b-256 147960c7a5c3cb7bd3164757b6cc1672b030835ddd1a252dcacfa1b54509e7c9

See more details on using hashes here.

File details

Details for the file pyseoanalyzer-4.0.7-py3-none-any.whl.

File metadata

  • Download URL: pyseoanalyzer-4.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pyseoanalyzer-4.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 87a473068095cac291a2a5f2437b81359a98a389c38767642de6c1ffce1e02e2
MD5 7b7d20e46dc505367092ec2b230cf91a
BLAKE2b-256 a0ee3688eaebf55788db5a7472d68bd75c7320bc7e31da1a2dcb180eb4c3af8a

See more details on using hashes here.

Supported by

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