v0.2.1
Bug fixes from a completeness audit: charts no longer duplicate items, and every scraped field is selectable with --fields.
A bug-fix release from auditing live output for completeness.
Charts no longer duplicate items
Amazon nests a faceout inside each grid item, so the chart parser matched every product twice and the badge-less copy fell through to document-order numbering. A 60-item chart came back as 180 rows, with one ASIN landing on several ranks.
Charts now yield one entry per product, dedupe by ASIN, and stop paging once a
page adds nothing new, so a chart like bestsellers electronics returns 60 rows
with ranks 1 to 60 in order. This applies to every chart: bestsellers, new
releases, movers and shakers, most wished for, and most gifted.
Every scraped field is selectable
--fields only saw the columns each row promotes to a table, so fields that
live only in the JSON record could not be selected into a table or CSV. You can
now name any scraped field, including in_stock, coupon, savings,
ships_from, images, videos, and ranks:
amz product B0DGHMNQ5Z --fields asin,in_stock,coupon,ships_from -o csv
String lists join with semicolons and structured values render as compact JSON, so a field is never silently blank when the data is present. See the data model for the full set of fields per record.