Google Maps Reviews Scraper & Exporter (Enhanced)

Scrapes reviews from Google Maps with improved date handling and photo extraction

这些是此脚本变更过代码的版本。 显示所有版本。

  • v0.16 2025-07-24

    fixed img recognition

  • v0.15 2025-07-24

    added img review urls

  • v0.14 2025-07-24

    # Changelog

    ## Version 0.14 - Enhanced Data Collection (2025-07-23)

    ### 🎯 Major Features Added
    - **Enhanced Date Handling**: Converts relative dates ("2 weeks ago") into estimated actual dates (YYYY-MM-DD format)
    - **Review Photo Extraction**: Now captures all photos attached to reviews, not just profile pictures
    - **CSV Export Option**: Added downloadable CSV format alongside existing JSON export
    - **High-Resolution Images**: Automatically upgrades image URLs to higher quality versions

    ### 🔧 Technical Improvements
    - **Smart Date Parsing**: New `parseReviewDate()` function handles various relative date formats
    - **Multi-Selector Photo Detection**: Uses multiple CSS selectors to reliably find review images
    - **Enhanced Data Structure**: Each review now includes 10 data fields vs. 6 previously
    - **Better Error Handling**: More robust extraction with graceful fallbacks
    - **Improved Scrolling Logic**: Better detection and handling of review containers

    ### 📊 Data Schema Changes
    **New Fields Added:**
    - `review_date_estimated` - Calculated actual date in ISO format
    - `review_photos` - Array of photo URLs attached to the review
    - `review_id` - Unique identifier for deduplication
    - `scraped_at` - Timestamp of data collection

    **Enhanced Fields:**
    - `review_date_raw` - Renamed from `review_date` for clarity
    - `profile_img_url` - Now returns higher resolution images

    ### 🎨 UI/UX Improvements
    - **New Export Button**: Added dedicated CSV export functionality
    - **Enhanced Status Messages**: Real-time progress tracking with emojis
    - **Better Progress Indicators**: Shows current review being processed
    - **Improved Panel Design**: Cleaner layout with better button organization

    ### 🐛 Bug Fixes
    - Fixed infinite scrolling loops with attempt limits
    - Improved handling of missing DOM elements
    - Better detection of "Show more" buttons across different layouts
    - Enhanced duplicate review prevention

    ### 🔄 API Changes
    - Reviews now stored in `window.scrapedReviews` for reuse between export functions
    - Date parsing separated into dedicated function for maintainability
    - Photo extraction modularized for better code organization

    ---

    ## Version 0.13 - Base Version
    - Initial floating panel interface
    - Basic review scraping functionality
    - Auto-scrolling to load reviews
    - Review expansion for truncated content
    - JSON export with clipboard integration
    - Basic data collection (6 fields per review)

  • v0.13 2025-07-24