Skip to content

A small SEO tool that analyzes the structure of a site, crawls the site, counts words in the body of the site and warns of any general SEO related issues. The script requires Python 2.7+, BeautifulSoup4, minidom, nltk, numpy and urllib2.

Notifications You must be signed in to change notification settings

Brylcoder/SEO---Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python SEO Analyzer

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

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)

If you get requests.exceptions.SSLError at either the command-line or via the python-API, try using:

instead of..

About

A small SEO tool that analyzes the structure of a site, crawls the site, counts words in the body of the site and warns of any general SEO related issues. The script requires Python 2.7+, BeautifulSoup4, minidom, nltk, numpy and urllib2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published