📚 Top ~10k best selling books on Amazon
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
0-fetch-categories-ids.rb
1-cache-search-pages.rb
2-search-to-products.rb
3-cache-products.rb
4-products-to-csv.rb
5-csv-to-markdown.rb
6-publish.rb
Gemfile
Gemfile.lock
README.md
all.rb
cache.rb
lib.rb

README.md

📖 Top Amazon books

Data of best selling Amazon books:

  • ID
  • Link
  • Title
  • Price used
  • Price new
  • Rank in Books

NOTE: Only checked for Canada and US stores

The data

Pretty charts

Just looking at the data:

charts

Reproducing it (new way)

  • Choose the country you want, it will be the top-level-domain (eg: com, ca, fr, co.uk, etc.)
  • Open the selling books page of the amazon website of this country
  • Open the developer tools
  • Select the console tab
  • console.log(Array.prototype.slice.call(document.querySelectorAll('#zg_browseRoot > ul > ul > li > a')).map((e) => e.href).join("\n"))
  • Copy paste the result to data/COUNTRY/categories.txt
  • US: bundle exec ruby all.rb com, Canada: bundle exec ruby all.rb ca