tducret / amazon-scraper-python

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

Adding the price #5

Open omar16100 opened 6 years ago

omar16100 commented 6 years ago

Hi @tducret, it would be nice to have the price as well

Bolzano-Weierstrass commented 6 years ago

Hi @omar16100 , I'll have a look and I'll try to add a feature that shows the price

bitofbreeze commented 5 years ago

any ideas about this? I tried with various user agents and css selectors and it worked with some combos but not consistently for all searches. I was thinking maybe just visit each product page in the results and scrape the price from there if it is easier or scrape an external site like camelcamelcamel (unfortunately they won't ever release an API).

tducret commented 5 years ago

@CSFlorin Getting prices properly is hard. There a many kind of prices and it is difficult to pick one (for a book : hardcover, kindle, used...) Visiting each product page seems a fair option, but it will take much longer to scrape. It's worth trying anyway. There are many interesting things inside (other pictures, description, reviews...).

bitofbreeze commented 5 years ago

I think I addressed this! https://github.com/tducret/amazon-scraper-python/pull/19