# Amazon Review Analyzer
Welcome to the Amazon Review Analyzer, a Python program designed to help you make informed decisions about purchasing products on Amazon.
## Overview
This program takes an Amazon product link as input and analyzes the reviews, providing insights into whether the product is a good buy. However, the ultimate decision to purchase rests entirely with you.
## How It Works
1. **Input the Product Link:** When you provide the Amazon product link, the program initiates a web scraping process to extract reviews.
2. **Scraping and Data Storage:** The scrapper extracts reviews from the [amazon.in/product-reviews/asin](amazon.in/product-reviews/asin) page. The unique ASIN (Amazon Standard Identification Number) is extracted from the link using Python's regular expressions. Due to pagination, the program iterates through the pages, storing the reviews in a CSV file named `reviews.csv`.
3. **User Agent:** Replace **headers** variable in `scrapper.py` with your user agent to know what is your user agent simply google **my user agent**
4. **Sentiment Analysis:** The program uses the `vaderSentiment` Python package to analyze the tone of the reviews. Additionally, the `demoji` package is employed to handle emojis present in the reviews.
## Run the Amazon Review Analyzer
To use the Amazon Review Analyzer, follow these steps:
1. Install the `amazon_review_analyzer` package:
```bash
pip install amazon_review_analyzer
2. ```bash
from amazon_review_analyzer import get_sentiment
# The following code prompts the user to enter an Amazon URL in the terminal
# and displays the sentiment analysis results.
3. ```bash
get_sentiment()
Raw data
{
"_id": null,
"home_page": "",
"name": "amazon-review-analyzer",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,amazon,review,analyzer,sentiment,analysis,amazon review analyzer",
"author": "Krishna Chaitanya",
"author_email": "<chaitu.gorle@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/dd/ae/d543023740f2141e80f2685bcac9762c0ac755c6acd98e34deda5f59039c/amazon_review_analyzer-1.1.1.tar.gz",
"platform": null,
"description": "\n# Amazon Review Analyzer\n\nWelcome to the Amazon Review Analyzer, a Python program designed to help you make informed decisions about purchasing products on Amazon.\n\n## Overview\n\nThis program takes an Amazon product link as input and analyzes the reviews, providing insights into whether the product is a good buy. However, the ultimate decision to purchase rests entirely with you.\n\n## How It Works\n\n1. **Input the Product Link:** When you provide the Amazon product link, the program initiates a web scraping process to extract reviews.\n\n2. **Scraping and Data Storage:** The scrapper extracts reviews from the [amazon.in/product-reviews/asin](amazon.in/product-reviews/asin) page. The unique ASIN (Amazon Standard Identification Number) is extracted from the link using Python's regular expressions. Due to pagination, the program iterates through the pages, storing the reviews in a CSV file named `reviews.csv`.\n\n3. **User Agent:** Replace **headers** variable in `scrapper.py` with your user agent to know what is your user agent simply google **my user agent**\n\n4. **Sentiment Analysis:** The program uses the `vaderSentiment` Python package to analyze the tone of the reviews. Additionally, the `demoji` package is employed to handle emojis present in the reviews.\n\n## Run the Amazon Review Analyzer\n\nTo use the Amazon Review Analyzer, follow these steps:\n\n1. Install the `amazon_review_analyzer` package:\n\n ```bash\n pip install amazon_review_analyzer\n\n2. ```bash\n from amazon_review_analyzer import get_sentiment\n\n# The following code prompts the user to enter an Amazon URL in the terminal\n# and displays the sentiment analysis results.\n\n3. ```bash\n get_sentiment()\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Amazon Product Reviews Analyzer",
"version": "1.1.1",
"project_urls": null,
"split_keywords": [
"python",
"amazon",
"review",
"analyzer",
"sentiment",
"analysis",
"amazon review analyzer"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df71bd8cbf19966d20953be2f2bf45b004f45847edab1a3c7a9e10ce0b3d0e37",
"md5": "c11d2b4050171e4a9260f8fbf51698ec",
"sha256": "47578d319eca224e81e33c9c733c6f2e4a87ff058eb6ab8a2b1301b503b14d3c"
},
"downloads": -1,
"filename": "amazon_review_analyzer-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c11d2b4050171e4a9260f8fbf51698ec",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3672,
"upload_time": "2024-01-17T20:12:15",
"upload_time_iso_8601": "2024-01-17T20:12:15.067305Z",
"url": "https://files.pythonhosted.org/packages/df/71/bd8cbf19966d20953be2f2bf45b004f45847edab1a3c7a9e10ce0b3d0e37/amazon_review_analyzer-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ddaed543023740f2141e80f2685bcac9762c0ac755c6acd98e34deda5f59039c",
"md5": "4205fc57fc85d4fabbb524ff7318740c",
"sha256": "7f8682bf4f709f69d8f32dd4f01acd1b79ada76bc08df77bff76d1c8b484b15d"
},
"downloads": -1,
"filename": "amazon_review_analyzer-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "4205fc57fc85d4fabbb524ff7318740c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3412,
"upload_time": "2024-01-17T20:12:16",
"upload_time_iso_8601": "2024-01-17T20:12:16.203474Z",
"url": "https://files.pythonhosted.org/packages/dd/ae/d543023740f2141e80f2685bcac9762c0ac755c6acd98e34deda5f59039c/amazon_review_analyzer-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-17 20:12:16",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "amazon-review-analyzer"
}