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

CSV output option #97

Closed zmoog closed 1 year ago

zmoog commented 1 year ago

We should add a new CSV output option for uses cases where users want the raw data to use with other tools.

here's an example:

$ rfrb it ipads --name 'iPad Air Wi-Fi 64GB ricondizionato - Celeste (quarta generazione)' --format csv
name,family,store,url,price,previous_price,savings_price,saving_percentage,model
"iPad Air Wi-Fi 64GB ricondizionato - Celeste (quarta generazione)","ipad","it","https://www.apple.com/it/shop/product/FYFQ2TY/A/iPad-Air-Wi-Fi-64GB-ricondizionato-Celeste-quarta-generazione",539.0,639.0, 100.0,0.15,"FYFQ2TY"