Skip to main content

Analyze Amazon product reviews

Project description

Project Description: Amazon Product Review Analysis

This Python script aims to analyze Amazon product reviews by extracting reviews from a specific product's URL and performing sentiment analysis on those reviews.

Functions Overview:

  1. get_url_review_page(UrlProduct, i):

    • Constructs the URL for a specific page of product reviews.
  2. get_rating(UrlProduct):

    • Retrieves the overall rating of the product.
  3. get_product_name(UrlProduct):

    • Extracts the name of the product from its URL.
  4. get_global_rating(UrlProduct):

    • Fetches the global rating of the product.
  5. get_image_url(UrlProduct):

    • Obtains the URL of the product's image.
  6. extract_reviews(UrlProduct):

    • Extracts reviews from a specific page of product reviews.
  7. extract_all_reviews(UrlProduct):

    • Extracts all reviews from multiple pages of product reviews.
  8. clean_comment(comment):

    • Cleans the text of a comment by converting it to lowercase, removing non-alphabetic characters, digits, and stop words.
  9. sentiment_analysis_textblob(text):

    • Performs sentiment analysis using TextBlob and returns the sentiment label (Positive, Negative, or Neutral).
  10. comment_dataFrame(UrlProduct):

    • Constructs a DataFrame containing cleaned comments and their corresponding sentiments.
  11. sentiment_by_comment(df):

    • Calculates the count of comments by sentiment.

Installation Requirements:

Team Members:

  • El Ouankrimi Ali
  • Olamine Zakaria
  • Oubella Abdallah

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amaproductreviews-0.0.6.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amaproductreviews-0.0.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file amaproductreviews-0.0.6.tar.gz.

File metadata

  • Download URL: amaproductreviews-0.0.6.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for amaproductreviews-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c96ca4ee96831ac4977cf4f3fbd3461d575be09768330ad71e7d4614ba26c564
MD5 a0ffc0a23b34278c778400cba69a913d
BLAKE2b-256 e0e4f34991eb1f65cbcecd5442c532637fa311fd3323d75fa89cd2c5b347e7b4

See more details on using hashes here.

File details

Details for the file amaproductreviews-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: amaproductreviews-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for amaproductreviews-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 53fcbb23ab30b7e2fe1502b023fe1c19c5193eda0376f53f64c170691188d7f5
MD5 52e1447823a0f12f0310861ee3b9acf4
BLAKE2b-256 73bd532fc99e5322077421cb485a21a1574100d5050fad6636417103e6e3fbdc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page