Code Monkey home page Code Monkey logo

Comments (4)

christiefung avatar christiefung commented on August 22, 2024

I have the same issue! It used to work fine (a few weeks ago) but I see the same error right now. Would you great if anybody can help fixing this?

from amazon-review-scraper.

jabney27 avatar jabney27 commented on August 22, 2024

Looks like Amazon has begun blocking these requests. The Robots.txt file shows the customer reviews are Disallowed. They appear to be pushing folks to the Product Advertising API which requires you to be a seller or have a e-commerce site to pull the data. Hopefully I'm wrong, but based on the information that came back on the query it appears that is what is going on.

<div class="a-row a-spacing-double-large" style="width: 350px; margin: 0 auto">

    <div class="a-row a-spacing-medium a-text-center"><i class="a-icon a-logo"></i></div>

    <div class="a-box a-alert a-alert-info a-spacing-base">
        <div class="a-box-inner">
            <i class="a-icon a-icon-alert"></i>
            <h4>Enter the characters you see below</h4>
            <p class="a-last">Sorry, we just need to make sure you're not a robot. For best results, please make sure your browser is accepting cookies.</p>
            </div>
        </div>

from amazon-review-scraper.

scrapehero-code avatar scrapehero-code commented on August 22, 2024

Definitely getting blocked here. You may want to change the User-Agent

from amazon-review-scraper.

rishab05 avatar rishab05 commented on August 22, 2024

In reviews.py if we add one more condition in if then It will work fine because if verified purchase is blank(None) then it will show error. If we add a condition in if block to check that, the error will be solve.
changes:

    if 'verified' in r and r['verified'] is not None:
        if 'Verified Purchase' in r['verified']:
            r['verified'] = 'Yes'
       else:
            r['verified'] = 'Yes'
   else:
       r['verified'] = 'No'

You can see I add one more condition in first If and also add a else for outer If.

from amazon-review-scraper.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.