tducret / amazon-scraper-python

Non-official client to get some info about products sold on Amazon
MIT License
871 stars 159 forks source link

Added price #19

Closed bitofbreeze closed 5 years ago

bitofbreeze commented 5 years ago

I found a relatively lightweight way to retrieve pricing info the way some of the price-tracking applications do it :D. It uses a special path gp/cart/desktop/ajax-mini-detail.html/ref=added_item_1?ie=UTF8&asin= It works on everything I’ve found except e-books. It is an extra resource about 3KB to load, so maybe we should make it an optional parameter but it can also be used to get number of ratings, if in stock, seller, etc. (e.g., https://www.amazon.com/gp/cart/desktop/ajax-mini-detail.html/ref=added_item_1?ie=UTF8&asin=1593276036)

I'm pretty confident about this method, and it might even serve us well to get all the info this way since I've noticed images aren't always correct as is.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 204


Totals Coverage Status
Change from base Build 199: 0.04%
Covered Lines: 173
Relevant Lines: 175

💛 - Coveralls
tducret commented 5 years ago

Hi @CSFlorin . Very small change (nice!). Any thought about adding it to the CSV output?

tducret commented 5 years ago

I was implementing the CSV part, but I am encountering captcha when requesting 100 items :( Do you have similar behaviour @CSFlorin ?

bitofbreeze commented 5 years ago

i think so :( not sure how amazon fingerprints: may just need to rotate the user agent or may have to use proxies...

jpeacock29 commented 5 years ago

Does this close #5?