--- id: advertools version: "0.18.0" license: unclear license_treatment: permissive maintenance: active --- # advertools — Digital Marketing productivity and analysis tools. License: permissive · Maintenance: active · Downloads: 74.5K/mo ## What it is and what it does advertools is a Python package designed to reduce the data-wrangling overhead in digital marketing work. Rather than building a monolithic framework, it provides independent functions that each handle one specific task well—generating keywords, creating ads, crawling websites, parsing search results, downloading sitemaps—and returns results as pandas DataFrames so you can combine them with other tools. The package is built on top of established libraries like Scrapy for crawling and requests for HTTP operations, and follows a Unix-like philosophy: each function does one thing, they work together in pipelines, and they handle text/tabular data as a universal interface. It targets practitioners doing SEO, SEM campaign setup, and online marketing analysis who spend most of their time manipulating URLs, stitching tables together, and generating campaign data rather than building models. Use it for: - Generate keyword variations for SEM campaigns at scale, then map them to ad copy and landing pages - Crawl a website to extract SEO metadata (titles, headers, status codes, custom selectors) and analyze site structure - Download and parse XML sitemaps and robots.txt files to audit site indexation and crawl directives - Query Google and YouTube SERP data via API to track rankings and search results for keyword analysis - Create templated ad copy by bulk-replacing product names and text segments across hundreds of ads ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. advertools provides data manipulation and analysis functions for digital marketing workflows—keyword generation, ad creation, SEO crawling, SERP parsing, and sitemap handling—returning results as DataFrames for further analysis. Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real pain point in marketing automation—data preparation and campaign setup. The modular design and DataFrame-first approach make it easy to integrate into existing Python workflows. Install it if you work with SEO, SEM, or digital marketing data at scale. ## Install pip install advertools uv add advertools poetry add advertools ## Installing advertools Before you install: Low friction installation with a pure-Python wheel. Active maintenance with a recent release 58 days ago and 1437 repository stars. Six runtime dependencies (pandas, scrapy, requests, pyarrow, twython, pyasn1) are all widely used and stable. License in practice: Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions. Quickstart: pip install advertools import advertools as adv # Generate keyword variations keywords = adv.kw_generate( products=['laptop', 'tablet'], words=['cheap', 'best'] ) # Crawl a website for SEO data adv.spider( 'https://example.com', output_file='crawl_results.csv' ) Requires Scrapy and its dependencies; large crawls may need custom Scrapy settings and sufficient system resources. Verify before relying: - Whether the package supports Python 2 as suggested by the wheel filename, or Python 3 only as the classifier indicates - Specific version constraints for runtime dependencies and minimum Python version ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 74.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags seo crawler python, keyword generation marketing, sem campaign automation, serp data extraction, digital marketing data tools, url and sitemap analysis, marketing workflow automation, seo-sem, marketing-automation, data-wrangling [View on SkillFed](https://skillfed.io/packages/advertools) · [View on PyPI](https://pypi.org/project/advertools/)