{"id":30701204,"url":"https://github.com/metaphysics0/scrape-amazon-reviews","last_synced_at":"2025-09-02T13:15:03.541Z","repository":{"id":296238868,"uuid":"992174407","full_name":"Metaphysics0/scrape-amazon-reviews","owner":"Metaphysics0","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-28T18:27:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T13:49:21.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Metaphysics0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T18:27:07.000Z","updated_at":"2025-05-28T18:27:15.000Z","dependencies_parsed_at":"2025-05-29T17:55:18.513Z","dependency_job_id":null,"html_url":"https://github.com/Metaphysics0/scrape-amazon-reviews","commit_stats":null,"previous_names":["metaphysics0/scrape-amazon-reviews"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Metaphysics0/scrape-amazon-reviews","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Metaphysics0%2Fscrape-amazon-reviews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Metaphysics0%2Fscrape-amazon-reviews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Metaphysics0%2Fscrape-amazon-reviews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Metaphysics0%2Fscrape-amazon-reviews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Metaphysics0","download_url":"https://codeload.github.com/Metaphysics0/scrape-amazon-reviews/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Metaphysics0%2Fscrape-amazon-reviews/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273288358,"owners_count":25078711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T13:14:58.981Z","updated_at":"2025-09-02T13:15:03.524Z","avatar_url":"https://github.com/Metaphysics0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Review Extractor\n\nA simple JavaScript tool to extract 4 and 5-star Amazon reviews from product pages and save them as structured JSON data.\n\n## What it does\n\nThis script automatically extracts high-rating reviews (4-5 stars) from Amazon product review pages and organizes them into a clean JSON format with:\n\n- Author name\n- Review date  \n- Review title/header\n- Review text\n- Product details (size, color, etc.)\n- Star rating\n- Verification status\n- Profile images\n- And more metadata\n\n## How to use\n\n### For Non-Developers\n\n1. **Go to an Amazon product's review page**\n   - Navigate to any Amazon product\n   - Click on the customer reviews section\n   - Make sure you can see the individual reviews on the page\n\n2. **Open Browser Developer Tools**\n   - **Chrome/Edge**: Press `F12` or right-click → \"Inspect\"\n   - **Firefox**: Press `F12` or right-click → \"Inspect Element\"\n   - **Safari**: Enable Developer menu first, then press `Option + Cmd + I`\n\n3. **Go to the Console tab**\n   - In the developer tools panel, click on the \"Console\" tab\n\n4. **Copy and paste the script**\n   - Copy the entire JavaScript code from `amazon-review-extractor.js`\n   - Paste it into the console and press Enter\n\n5. **Navigate through review pages**\n   - Go to the next page of reviews (click \"Next\" button)\n   - Run the script again by typing `extractHighRatingReviews()` and pressing Enter\n   - Repeat for as many pages as you want\n\n6. **Download your data**\n   - Type `downloadReviewsAsJSON()` and press Enter\n   - A JSON file will automatically download with all your collected reviews\n\n### For Developers\n\n```javascript\n// Initialize and extract reviews from current page\nextractHighRatingReviews();\n\n// Get all collected reviews\nconst allReviews = getAllReviews();\n\n// Clear the collection\nclearReviewCollection();\n\n// Extract without adding to global collection\nconst currentPageOnly = extractHighRatingReviews(false);\n\n// Download as file\ndownloadReviewsAsJSON('my-reviews.json');\n```\n\n## Output Format\n\nThe script generates a JSON array with this structure:\n\n```json\n[\n  {\n    \"author\": \"John Doe\",\n    \"date\": \"Reviewed in the United States on January 15, 2025\",\n    \"review\": \"Great product! Highly recommend it.\",\n    \"header\": \"Excellent quality\",\n    \"metadata\": {\n      \"starRating\": 5.0,\n      \"productDetails\": \"Size: Large | Color: Blue\",\n      \"verifiedPurchase\": \"Verified Purchase\",\n      \"reviewId\": \"R1JWWMD5G5H2WV\",\n      \"avatarImage\": \"https://...\",\n      \"images\": [\"https://...\"]\n    }\n  }\n]\n```\n\n## Features\n\n- ✅ **Automatic deduplication** - Won't add the same review twice\n- ✅ **Multi-page support** - Collect reviews across multiple pages\n- ✅ **Persistent storage** - Data persists as you navigate between pages\n- ✅ **Error handling** - Gracefully handles missing or malformed data\n- ✅ **Export functionality** - Download results as JSON file\n- ✅ **Metadata rich** - Captures images, product details, and verification status\n\n## Helpful Commands\n\nWhile in the browser console:\n\n```javascript\n// Check how many reviews you've collected\nconsole.log(`Total reviews: ${getAllReviews().length}`);\n\n// View all collected reviews\nconsole.log(getAllReviews());\n\n// Start over with a fresh collection\nclearReviewCollection();\n\n// Download your data\ndownloadReviewsAsJSON();\n```\n\n## Use Cases\n\n- **Market Research**: Analyze customer sentiment and feedback\n- **Product Development**: Understand what customers love about products\n- **Content Creation**: Gather authentic customer testimonials\n- **Data Analysis**: Build datasets for sentiment analysis or ML projects\n- **Academic Research**: Study consumer behavior and reviews\n\n## Browser Compatibility\n\nWorks in all modern browsers:\n- Chrome 60+\n- Firefox 55+\n- Safari 12+\n- Edge 79+\n\n## Important Notes\n\n⚠️ **Legal and Ethical Use**: This tool is for personal research and analysis. Always respect Amazon's Terms of Service and robots.txt. Don't use this for commercial scraping or to violate any terms of service.\n\n⚠️ **Rate Limiting**: Don't run this too aggressively. Navigate pages at a normal human pace to be respectful to Amazon's servers.\n\n⚠️ **Data Privacy**: Be mindful of the personal information in reviews when sharing or publishing extracted data.\n\n## Troubleshooting\n\n**Script not finding reviews?**\n- Make sure you're on an Amazon product review page\n- Check that reviews are visible on the page\n- Try refreshing the page and running the script again\n\n**No data being collected?**\n- Ensure you're looking at 4-5 star reviews (the script filters out lower ratings)\n- Check the browser console for any error messages\n\n**Downloaded file is empty?**\n- Make sure you've run `extractHighRatingReviews()` at least once before downloading\n- Check that `getAllReviews().length` returns a number greater than 0\n\n## Contributing\n\nFeel free to submit issues, fork the repository, and create pull requests for any improvements.\n\n## License\n\nMIT License - feel free to use this tool for your projects!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaphysics0%2Fscrape-amazon-reviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaphysics0%2Fscrape-amazon-reviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaphysics0%2Fscrape-amazon-reviews/lists"}