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 #\x00 \x00A\x00m\x00a\x00P\x00r\x00o\x00d\x00u\x00c\x00t\x00R\x00e\x00v\x00i\x00e\x00w\x00s\x00 \x00 \x00

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.1.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

amaproductreviews-0.1.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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