zmoog / refurbished

Python packace to access the products information available on the Apple Certified Refurbished section of the Apple Store.
MIT License
11 stars 3 forks source link

Add a new 'store' field to the product #96

Closed zmoog closed 1 year ago

zmoog commented 1 year ago

You need the store id when you export the data using the json or ndjson output formats, so you know the store the data is coming from.

Here's an example:

$ rfrb it iphones --format ndjson | head  -n 1 | jq                                               zmoog/add-store-to-product  ✱
{
  "name": "iPhone 12 mini 64GB ricondizionato - Verde (Senza SIM)",
  "family": "iphone",
  "store": "it",
  "url": "https://www.apple.com/it/shop/product/FGE23QL/A/iphone-12-mini-64gb-ricondizionato-verde",
  "price": 609,
  "previous_price": 719,
  "savings_price": 110,
  "saving_percentage": 0.15299026425591097,
  "model": "FGE23QL"
}