Skip to content

About

Python scraper to extract People Also Ask (PAA) questions from SERP results — for SEO content research

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

seo-paa

PyPI version Python 3.9+ License: MIT

Extract People Also Ask (PAA) questions from Google SERP via SerpAPI — for SEO content research and topic clustering.

Install

pip install seo-paa

Usage

Python API

from seo_paa import PAAScraper

scraper = PAAScraper(api_key="your_serpapi_key", lang="en", country="us")

results = scraper.get_paa("best surf camp senegal", max_results=10)
for r in results:
    print(r.question)
    print(r.snippet)
    print()

Output:

Is Senegal good for surfing?
Yes, Ngor Island is considered one of West Africa's best surf spots...

Best time to surf in Senegal?
The main surf season runs from November to April...

Return as plain dicts (for pandas / JSON)

import pandas as pd

data = scraper.get_paa_dict("surf camp west africa")
df = pd.DataFrame(data)
df.to_csv("paa_results.csv", index=False)

Extract from a product URL

Extracts the product name from a page's JSON-LD Product schema, then fetches PAA:

results = scraper.get_paa_from_url("https://example.com/product/surf-board")

CLI

# Basic usage (set SERPAPI_KEY env var)
seo-paa "best surf camp senegal"

# With options
seo-paa "best surf camp" --lang fr --country fr --max 5

# JSON output (pipe to jq, save to file, etc.)
seo-paa "surf senegal" --json | jq '.[].question'

Configuration

Parameter Description Default
api_key SerpAPI key (or SERPAPI_KEY env var) —
lang Language code (en, fr, es…) "en"
country Country code (us, fr, gb…) "us"
location Full location string (e.g. "Paris,Ile-de-France,France") None

Why PAA matters for SEO

PAA questions are a direct signal of what users ask around a topic. Mining them at scale lets you:

  • Build FAQ sections that target featured snippets
  • Identify content gaps vs. competitors
  • Cluster topics for pillar/cluster content strategies
  • Feed into content briefs and internal linking maps

Requirements

License

MIT — Simon Azoulay

About

Python scraper to extract People Also Ask (PAA) questions from SERP results — for SEO content research

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages