seo-toolkit
SEO toolkit for Python — keyword research, SERP analysis, on-page audits, content optimization, and PyPI package SEO. No API keys required.
Install
pip install seo-toolkit
Quick Start
from seo_toolkit import KeywordResearch, SERPAnalyzer, OnPageAudit, ContentOptimizer, TechnicalSEO, PyPIOptimizer
# Keyword research
kw = KeywordResearch()
results = kw.full_research("python web scraping")
print(f"Found {results['total_keywords']} keywords in {results['cluster_count']} clusters")
# SERP analysis
serp = SERPAnalyzer()
analysis = serp.analyze_competition("best python web scraping libraries")
print(f"Top domains: {[d['domain'] for d in analysis['top_domains']]}")
# On-page audit
audit = OnPageAudit()
result = audit.audit("https://example.com")
print(f"Score: {result.overall_score}/100")
for issue in result.issues:
print(f" - {issue}")
# Content optimization
opt = ContentOptimizer()
analysis = opt.analyze("Your article text here...", target_keywords=["python", "scraping"])
print(f"Readability: {analysis.reading_level}")
print(f"Keyword density: {analysis.keyword_density}")
# Technical SEO
tech = TechnicalSEO()
report = tech.audit("https://example.com")
print(f"Load time: {report.load_time_ms}ms, HTTPS: {report.is_https}")
# PyPI package SEO
pypi = PyPIOptimizer()
audit = pypi.audit_package(
name="my-package",
description="A Python tool that does cool stuff",
keywords=["python", "tool", "cli"],
readme=open("README.md").read(),
)
print(f"Package score: {audit.overall_score}/100")
Modules
KeywordResearch
- Google and Bing autocomplete scraping
- Alphabet soup expansion (a-z suffix mining)
- Question mining (how/what/why/when/where)
- Keyword clustering with similarity threshold
- Intent classification (informational/commercial/transactional/navigational)
- Long-tail and buying intent filters
- Competition estimation
SERPAnalyzer
- Google SERP scraping (featured snippets, PAA, related searches)
- Competitor domain analysis
- Content gap detection across multiple queries
- Ranking position checker
- SERP feature detection
OnPageAudit
- Title tag, meta description, heading structure
- Open Graph and Twitter Card tags
- Canonical URL validation
- JSON-LD structured data detection
- Image alt text audit
- Internal/external link counting
- Page speed and size metrics
- Automated scoring and recommendations
ContentOptimizer
- Flesch reading ease score
- Keyword density analysis
- Bigram and trigram extraction
- Title and meta description scoring
- Content comparison (A vs B)
- Actionable optimization suggestions
TechnicalSEO
- HTTPS, HSTS, CSP header checks
- robots.txt parsing and validation
- Sitemap discovery and analysis
- Mobile viewport detection
- Redirect chain tracking
- Page size and load time metrics
PyPIOptimizer
- Package name scoring (length, readability, prefixes)
- Description analysis (length, keywords, action words)
- README scoring (install instructions, examples, badges, donate links)
- Competitor package lookup
- Name suggestion engine
Requirements
- Python 3.10+
- requests, beautifulsoup4, lxml
License
MIT
Donate
If this saved you hours of SEO work:
- PayPal: bill.jtrammell@gmail.com
- Cash App: $slauter99
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seo_toolkit-0.1.0.tar.gz
(16.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seo_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: seo_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
505844b7b94a85d57ae4ef0e7ee18ba2a6543b99fe7f5ab80600ad2a12ed6442
|
|
| MD5 |
5d517e09b2555285cf213abbe185945b
|
|
| BLAKE2b-256 |
320b3e5bee88f4d38b1164e979edd894a71804a286b32b8ad232fb30715d9d53
|
File details
Details for the file seo_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: seo_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e7588f7e306114c2129ff01dd3d43ee541bca861f609fcd53f637bbe0f03850
|
|
| MD5 |
c9ad87a478b984b92c354ae8b99e7ee8
|
|
| BLAKE2b-256 |
2901a80f23d74312993871dcde2a22c7c24f7de4ae8666573c298bd5e84b6737
|