GithubHelp home page GithubHelp logo

Comments (8)

hahnicity avatar hahnicity commented on May 25, 2024

What are you doing? Are you running the unit tests or are you trying to do something else

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

Also, provide the version you are using.

from amazon_scraper.

bnantz avatar bnantz commented on May 25, 2024

Thanks for the prompt response! I wasn't sure this was the best way to report the issue? Anyway, I downloaded the master zip file (https://github.com/adamlwgriffiths/amazon_scraper/archive/master.zip) and installed using the setup.py. BTW, there is an error on line 4 (del os.link) of the setup.py on my windows 7 laptop (work issued :( ).

I am not running the unit tests but suspect they wouldn't work. Here is the code I am running:

from amazon_scraper import AmazonScraper
amzn = AmazonScraper("put your access key", "secret key", "and associate tag here")

p = amzn.lookup(ItemId='B00BGO0Q9O')
print(p.title)
print(p.ratings)

rs = amzn.reviews(URL=p.reviews_url)
for r in rs:
print(r.title)

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

Sorry, I didn't realise you mentioned 'master' in your response (I was waiting to hear what version you were using, my bad).
Strange errors.
Are you using Python 3?

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

The error at the end should be fixed by #15.
Not sure on the method printing.

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

Ok, I've needed to use the library again and I'm finding that its in a totally broken state.
Iterating a review page returns ids (this has been there for a long time to avoid downloading reviews)
Subreviews aren't parsing on a number of pages.
Iteration is broken in some methods.
Ratings for SubReviews is broken (attempt to cast '5.0 out of 5 stars' to an int).
No conversion method from SubReview to full Review.

I'm looking into this, hold tight.

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

Bugs should be fixed in 6df73f6
Python 3 is still unresolved.
The only issues I can see are the changes Amazon have made to ratings (#17).

from amazon_scraper.

adamlwgriffiths avatar adamlwgriffiths commented on May 25, 2024

Python 3 should be supported as of 0.3.1
See this 265bfac for changes

from amazon_scraper.

Related Issues (20)

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.