SEO Keyword Extractor
Analyze any URL or text file with Claude AI. Extract primary and long-tail keywords, identify search intent, spot content gaps, and generate full SEO content briefs. Batch process multiple URLs.
Download from GitHub
Free and open source. No SEMrush subscription needed - bring your Claude API key and go.
View on GitHub →What it does
Fetches content from any URL (or reads a local text file), then asks Claude AI to extract the primary keyword, secondary keywords, long-tail phrases, and search intent. In --mode brief it generates a full content brief with suggested headings, target word count, and internal linking opportunities.
Features
- Analyze any URL or text file
- Batch process a list of URLs from a file
- Extract primary, secondary, and long-tail keywords
- Identify search intent (informational / commercial / transactional)
- Full content brief mode with headings and word count targets
- Spot content gaps and internal link opportunities
- Export to Markdown, CSV, or JSON
Quick start
git clone https://github.com/Get-Ai-Tools/seo-keyword-extractor cd seo-keyword-extractor pip install -r requirements.txt # Analyze a URL python extractor.py --api-key sk-ant-... --url https://example.com/blog/post # Full content brief python extractor.py --api-key sk-ant-... --url https://example.com --mode brief # Batch analyze URLs from file, export CSV python extractor.py --api-key sk-ant-... --urls urls.txt --output csv
Requirements
- Python 3.8+
requests,anthropic(auto-installed)- Claude API key - get one free at console.anthropic.com
Is this as good as paid SEO tools?
For keyword extraction and content analysis, Claude AI gives excellent results. It can't provide search volume data (that requires Google API access), but for understanding a page's target keywords and content strategy, it's very capable.
Can I analyze competitor pages?
Yes. Pass any public URL - your own content or a competitor's. The tool fetches the page and extracts what keywords it's targeting and what topics it covers.