◆SkillMarketingFree
advertools — SEO & SEM Productivity Toolkit
MIT-licensed Python library for SEO, SEM, and digital marketing analysis: sitemap parsing, robots.txt analysis, keyword planning, and log file analysis.
advertools — SEO & SEM Productivity Toolkit
advertools is a Python library by Elias Dabbas that provides a comprehensive suite of SEO and SEM analytical tools. It handles the data-heavy workflows that digital marketers and SEO specialists encounter daily — crawling sitemaps, auditing robots.txt, generating keyword combinations, analyzing ad accounts, parsing structured data, and processing server log files.
Key Features
- Sitemap analysis: parse XML sitemaps and sitemap indexes into DataFrames
- robots.txt parsing: analyze crawl rules and
Disallow/Allowdirectives - Keyword tools: combinatorial keyword expansion, match-type normalization, keyword clustering
- SEM tools: account budget analysis, ad copy grading, Quality Score inputs
- Log file analysis: parse Apache/Nginx access logs to find SEO crawl patterns
- Structured data: extract JSON-LD and OpenGraph metadata from URLs
Quick Start
pip install advertools
import advertools as adv
# Analyze a sitemap
sitemap_df = adv.sitemap_to_df("https://example.com/sitemap.xml")
print(sitemap_df[["loc", "lastmod", "priority"]].head())
# Generate keyword combinations for Google Ads
keywords = adv.kw_generate(
products=["running shoes", "trail shoes"],
words=["buy", "best", "review"],
match_types=["Exact", "Phrase"]
)
print(keywords.head(10))
npx ai-supply add advertools-seo-sem-toolkit
Curated mirror of the open-source advertools (MIT). Get it from the source.