Amazon Product Reviews Analyzer
Project description
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
-
Input the Product Link: When you provide the Amazon product link, the program initiates a web scraping process to extract reviews.
-
Scraping and Data Storage: The scrapper extracts reviews from the 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
. -
User Agent: Replace headers variable in
scrapper.py
with your user agent to know what is your user agent simply google my user agent -
Sentiment Analysis: The program uses the
vaderSentiment
Python package to analyze the tone of the reviews. Additionally, thedemoji
package is employed to handle emojis present in the reviews.
Run the Amazon Review Analyzer
To use the Amazon Review Analyzer, follow these steps:
-
Install the
amazon_review_analyzer
package:pip install amazon_review_analyzer
-
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.
-
get_sentiment()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file amazon_review_analyzer-1.1.1.tar.gz
.
File metadata
- Download URL: amazon_review_analyzer-1.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f8682bf4f709f69d8f32dd4f01acd1b79ada76bc08df77bff76d1c8b484b15d |
|
MD5 | 4205fc57fc85d4fabbb524ff7318740c |
|
BLAKE2b-256 | ddaed543023740f2141e80f2685bcac9762c0ac755c6acd98e34deda5f59039c |
File details
Details for the file amazon_review_analyzer-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: amazon_review_analyzer-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47578d319eca224e81e33c9c733c6f2e4a87ff058eb6ab8a2b1301b503b14d3c |
|
MD5 | c11d2b4050171e4a9260f8fbf51698ec |
|
BLAKE2b-256 | df71bd8cbf19966d20953be2f2bf45b004f45847edab1a3c7a9e10ce0b3d0e37 |