Skip to main content

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:

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seo_toolkit-0.1.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

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

Hashes for seo_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 505844b7b94a85d57ae4ef0e7ee18ba2a6543b99fe7f5ab80600ad2a12ed6442
MD5 5d517e09b2555285cf213abbe185945b
BLAKE2b-256 320b3e5bee88f4d38b1164e979edd894a71804a286b32b8ad232fb30715d9d53

See more details on using hashes here.

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

Hashes for seo_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7588f7e306114c2129ff01dd3d43ee541bca861f609fcd53f637bbe0f03850
MD5 c9ad87a478b984b92c354ae8b99e7ee8
BLAKE2b-256 2901a80f23d74312993871dcde2a22c7c24f7de4ae8666573c298bd5e84b6737

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page