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
Metadata
Release files for seo-toolkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seo_toolkit-0.1.0.tar.gz | 16.4 kB | Without provenance | Details for seo_toolkit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seo_toolkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for seo_toolkit-0.1.0-py3-none-any.whl |
Total release size: 34.1 kB
Release files / seo_toolkit-0.1.0.tar.gz
| Download URL | seo_toolkit-0.1.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
505844b7b94a85d57ae4ef0e7ee18ba2a6543b99fe7f5ab80600ad2a12ed6442
|
|
BLAKE2b-256 checksum How to use checksums |
320b3e5bee88f4d38b1164e979edd894a71804a286b32b8ad232fb30715d9d53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / seo_toolkit-0.1.0-py3-none-any.whl
| Download URL | seo_toolkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e7588f7e306114c2129ff01dd3d43ee541bca861f609fcd53f637bbe0f03850
|
|
BLAKE2b-256 checksum How to use checksums |
2901a80f23d74312993871dcde2a22c7c24f7de4ae8666573c298bd5e84b6737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for seo-toolkit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.