Skip to content

officialpm/scrape-amazon

Repository files navigation

scrape-amazon 🚀

Downloads versions pyVersions Stars Forks License Visitors

Installation

❯ pip install scrape-amazon

Example

Import as module

from scrape_amazon import get_reviews

reviews = get_reviews('com','B085BCWJV6') #returns dataframe
#SrNo.,Reviewer,ReviewerURL,VerifiedPurchase,HelpfulCount,Rating,Title,Description,Date

CLI

How to use

❯ scrape-amazon [domain] [product_id] [output_path].csv

Positional Arguments:

domain       Amazon Domain (in/com)
product_id   product id for scraping (B085BCWJV6)
output_path  output_path for saving (B085BCWJV6.csv)

Example

❯ scrape-amazon com B085BCWJV6 B085BCWJV6.csv

Output

|SrNo.|Reviewer      |ReviewerURL                                                             |VerifiedPurchase|HelpfulCount|Rating|Title                    |Description        |Date      |
|:---:|:------------:|:----------------------------------------------------------------------:|:--------------:|:----------:|:----:|:-----------------------:|:-----------------:|:--------:|
|  0  |  Miss Brea   |https://amazon.com/gp/profile/amzn1.account.AFCGYZNNVKNA4VXFGYO5YTVUUTFA|      YES       |     0      |  5   |          Great          |   I used it ...   |12/10/2022|
|  1  |Basil Saunders|https://amazon.com/gp/profile/amzn1.account.AE3ZIBJKBIJE3V3ALSXENXCJI6TA|      YES       |     0      |  5   |     Lovely product      | It smooths my ... |12/13/2022|
|  2  |  Jessie E.   |https://amazon.com/gp/profile/amzn1.account.AETVQOAZ4NOVB23Y6ZXZEAQDQAUQ|      YES       |     5      |  5   |     So easy to ...      |  I make cold...   |10/02/2022|
|  3  |elizabeth todd|https://amazon.com/gp/profile/amzn1.account.AFGXB32V7ATUEWJJK2IOFU4MZGHQ|      YES       |     0      |  5   |  Amazing cocoa butter   |This Cocoa butter w|11/10/2022|
|  4  |    PRPro     |https://amazon.com/gp/profile/amzn1.account.AEKBNIYENZ5QUXFTJZFHV2K6XG6Q|      YES       |     8      |  5   |     Great for scars     |There used to ...  |09/07/2022|
|  5  | Megan Cooper |https://amazon.com/gp/profile/amzn1.account.AHUERNG2V5IUSQ3ZFRLPFAKGE2ZA|      YES       |     0      |  5   |    Good quality but     |The smell is extr..|10/29/2022|

Want to contribute?

To get more information on contributing, go to the CONTRIBUTING.md

Also read the CODE_OF_CONDUCT.md

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy