Major refactoring to create a clean, integrated CLI application: ### New Features: - Unified CLI executable (./seo) with simple command structure - All commands accept optional CSV file arguments - Auto-detection of latest files when no arguments provided - Simplified output directory structure (output/ instead of output/reports/) - Cleaner export filename format (all_posts_YYYY-MM-DD.csv) ### Commands: - export: Export all posts from WordPress sites - analyze [csv]: Analyze posts with AI (optional CSV input) - recategorize [csv]: Recategorize posts with AI - seo_check: Check SEO quality - categories: Manage categories across sites - approve [files]: Review and approve recommendations - full_pipeline: Run complete workflow - analytics, gaps, opportunities, report, status ### Changes: - Moved all scripts to scripts/ directory - Created config.yaml for configuration - Updated all scripts to use output/ directory - Deprecated old seo-cli.py in favor of new ./seo - Added AGENTS.md and CHANGELOG.md documentation - Consolidated README.md with updated usage ### Technical: - Added PyYAML dependency - Removed hardcoded configuration values - All scripts now properly integrated - Better error handling and user feedback Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# WordPress Configuration (Primary Site)
|
|
WORDPRESS_URL=https://yoursite.com
|
|
WORDPRESS_USERNAME=your_username
|
|
WORDPRESS_APP_PASSWORD=your_application_password
|
|
|
|
# Multi-Site Configuration (Optional)
|
|
# If you want to analyze multiple WordPress sites, configure them here:
|
|
# Leave empty to use primary site credentials
|
|
|
|
# Site 1: mistergeek.net
|
|
WORDPRESS_MISTERGEEK_URL=https://www.mistergeek.net
|
|
WORDPRESS_MISTERGEEK_USERNAME=your_username
|
|
WORDPRESS_MISTERGEEK_PASSWORD=your_application_password
|
|
|
|
# Site 2: webscroll.fr
|
|
WORDPRESS_WEBSCROLL_URL=https://www.webscroll.fr
|
|
WORDPRESS_WEBSCROLL_USERNAME=your_username
|
|
WORDPRESS_WEBSCROLL_PASSWORD=your_application_password
|
|
|
|
# Site 3: hellogeek.net
|
|
WORDPRESS_HELLOGEEK_URL=https://www.hellogeek.net
|
|
WORDPRESS_HELLOGEEK_USERNAME=your_username
|
|
WORDPRESS_HELLOGEEK_PASSWORD=your_application_password
|
|
|
|
# OpenRouter API Configuration
|
|
OPENROUTER_API_KEY=your_openrouter_api_key
|
|
|
|
# AI Model Selection (choose one)
|
|
# Recommended: anthropic/claude-3.5-sonnet (best quality, $3/$15 per 1M tokens)
|
|
# Budget: meta-llama/llama-3.1-70b-instruct (free tier available)
|
|
# Alternative: openai/gpt-4-turbo ($10/$30 per 1M tokens)
|
|
AI_MODEL=anthropic/claude-3.5-sonnet
|
|
|
|
# Script Configuration
|
|
BATCH_SIZE=100
|
|
API_DELAY_SECONDS=0.5
|
|
|
|
# Analysis Settings
|
|
ANALYSIS_MIN_POSITION=11
|
|
ANALYSIS_MAX_POSITION=30
|
|
ANALYSIS_MIN_IMPRESSIONS=50
|
|
ANALYSIS_TOP_N_POSTS=20
|