Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

NotificationsYou must be signed in to change notification settings

pymeister/python-seo-analyzer

 
 

Repository files navigation

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

Theanalyze function returns a dictionary with the results of the crawl.

fromseoanalyzerimportanalyzeoutput=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 theanalyze function

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

By default, theanalyze 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 theanalyze function

fromseoanalyzerimportanalyzeoutput=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 getrequests.exceptions.SSLError at either the command-line or via the python-API, try using:

instead of..

About

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.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python94.9%
  • HTML5.0%
  • Dockerfile0.1%

[8]ページ先頭

©2009-2025 Movatter.jp