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 general SEO related issues.
Project description
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 general SEO related issues.
Requires Python 3.4+, 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)
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:
insead of..
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyseoanalyzer-3.1.4.tar.gz
.
File metadata
- Download URL: pyseoanalyzer-3.1.4.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8868add5ed069e4934565b5ec48d81e75bd2c0f9830341981a4151202f67ecb8 |
|
MD5 | 2833c6191bfa206214158db33770a2f3 |
|
BLAKE2b-256 | b32738e180d4ff304dd08c1badb57bd4e1bb4b87a7687cc10becd45505703632 |
File details
Details for the file pyseoanalyzer-3.1.4-py3-none-any.whl
.
File metadata
- Download URL: pyseoanalyzer-3.1.4-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6fb4191cd5ae638774bdd91326db96b81cc67453dce43937795f759489ab553 |
|
MD5 | a08258ac08600bb16dd18cb8a98d0256 |
|
BLAKE2b-256 | 43849edf786e1450c8397ebabdfda9052e81682e0d2200975455a8bbc3b89e27 |