zmoog / refurbished

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

CLI: output data in JSON format #85

Closed zmoog closed 1 year ago

zmoog commented 2 years ago

Having the output from the CLI as JSON enables the integration of refurbished in other tools.

For example, I am thinking about to something like this:

$ rfrb it ipads --format json
[
  {
    "name": " iPad Pro 11' Wi-Fi 64GB ricondizionato - Argento",
    "price": 589.00,
    "previous_price": 789.00,
    ...
  }
]

$ rfrb it ipads --format ndjson
[{"name":" iPad Pro 11' Wi-Fi 64GB ricondizionato - Argento","price":589,"previous_price":789}]