SinghalHarsh / amazon-product-review-scraper

Python package to scrape product review data from amazon
MIT License
23 stars 8 forks source link

Service Unavailable for URL #1

Open Lia-C opened 3 years ago

Lia-C commented 3 years ago

Hi,

I'm just running the demo code as-is:

from amazon_product_review_scraper import amazon_product_review_scraper
review_scraper = amazon_product_review_scraper(amazon_site="amazon.in", product_asin="B07X6V2FR3")
reviews_df = review_scraper.scrape()
reviews_df.head(5)

But am getting back a "Service Unavailable for URL" error:

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
<ipython-input-4-a59f9eff21de> in <module>()
      1 from amazon_product_review_scraper import amazon_product_review_scraper
----> 2 review_scraper = amazon_product_review_scraper(amazon_site="amazon.in", product_asin="B07X6V2FR3")
      3 reviews_df = review_scraper.scrape()
      4 reviews_df.head(5)

3 frames
/usr/local/lib/python3.7/dist-packages/requests/models.py in raise_for_status(self)
    939 
    940         if http_error_msg:
--> 941             raise HTTPError(http_error_msg, response=self)
    942 
    943     def close(self):

HTTPError: 503 Server Error: Service Unavailable for url: https://www.amazon.in/dp/product-reviews/B07X6V2FR3?pageNumber=1