{"id":29200312,"url":"https://github.com/zmoog/refurbished","last_synced_at":"2025-07-02T10:35:41.554Z","repository":{"id":14279109,"uuid":"76223313","full_name":"zmoog/refurbished","owner":"zmoog","description":"Python packace to access the products information available on the Apple Certified Refurbished section of the Apple Store.","archived":false,"fork":false,"pushed_at":"2025-06-18T06:50:48.000Z","size":307,"stargazers_count":14,"open_issues_count":23,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T07:33:10.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmoog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-12T04:59:26.000Z","updated_at":"2025-06-12T20:34:27.000Z","dependencies_parsed_at":"2025-03-11T20:27:53.018Z","dependency_job_id":"abf75dac-89a2-4c87-a744-b760d9b02353","html_url":"https://github.com/zmoog/refurbished","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/zmoog/refurbished","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Frefurbished","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Frefurbished/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Frefurbished/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Frefurbished/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmoog","download_url":"https://codeload.github.com/zmoog/refurbished/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Frefurbished/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263121443,"owners_count":23416997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-02T10:35:40.668Z","updated_at":"2025-07-02T10:35:41.528Z","avatar_url":"https://github.com/zmoog.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refurbished\n\nRefurbished is a CLI tool (and a Python [library on PyPI](https://pypi.org/project/refurbished/)) to access the product information available on the [Apple Certified Refurbished](https://www.apple.com/shop/refurbished) section of the Apple Store.\n\n## Usage\n\n### As a CLI Tool\n\nA quick search for Macs with a min saving of 300 EUR on the Italian store:\n\n```shell\n$ rfrb it macs --min-saving=300\n                                                             Refurbished Products                                                             \n                                                                                                                                              \n  Model    Current   Previous   Saving       Name                                                                                                \n ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n  FGN63T   869       1,229      29% (-360)   MacBook Air 13,3\" ricondizionato con chip Apple M1, CPU 8‐core e GPU 7‐core - Grigio siderale       \n  FGN93T   869       1,229      29% (-360)   MacBook Air 13,3\" ricondizionato con chip Apple M1, CPU 8‐core e GPU 7‐core - Argento               \n  FGND3T   869       1,229      29% (-360)   MacBook Air 13,3\" ricondizionato con chip Apple M1, CPU 8‐core e GPU 7‐core - Oro                   \n  FGN73T   1,049     1,429      27% (-380)   MacBook Air 13,3\" ricondizionato con chip Apple M1, CPU 8‐core e GPU 8‐core - Grigio siderale       \n  FGNA3T   1,049     1,429      27% (-380)   MacBook Air 13,3\" ricondizionato con chip Apple M1, CPU 8‐core e GPU 8‐core - Argento               \n  FQKR3T   1,209     1,519      20% (-310)   MacBook Air 15\" ricondizionato con chip Apple M2, CPU 8‐core e GPU 10‐core - Argento                \n  FQKU3T   1,209     1,519      20% (-310)   MacBook Air 15\" ricondizionato con chip Apple M2, CPU 8‐core e GPU 10‐core - Galassia               \n  FQKW3T   1,209     1,519      20% (-310)   MacBook Air 15\" ricondizionato con chip Apple M2, CPU 8‐core e GPU 10‐core - Mezzanotte             \n  FRX63T   2,019     2,379      15% (-360)   MacBook Pro 14\" ricondizionato con chip Apple M3 Pro, CPU 11‐core e GPU 14‐core - Argento           \n  FRX33T   2,019     2,379      15% (-360)   MacBook Pro 14\" ricondizionato con chip Apple M3 Pro, CPU 11‐core e GPU 14‐core - Nero siderale     \n  FRX43T   2,449     2,879      15% (-430)   MacBook Pro 14\" ricondizionato con chip Apple M3 Pro, CPU 12-core e GPU 18-core - Nero siderale     \n  FRX73T   2,449     2,879      15% (-430)   MacBook Pro 14\" ricondizionato con chip Apple M3 Pro, CPU 12-core e GPU 18-core - Argento           \n  FRX53T   3,209     3,779      15% (-570)   MacBook Pro 14\" ricondizionato con chip Apple M3 Max con CPU 14‐core e GPU 30‐core - Nero siderale  \n  FRX83T   3,209     3,779      15% (-570)   MacBook Pro 14\" ricondizionato con chip Apple M3 Max con CPU 14‐core e GPU 30‐core - Argento        \n  FNWA3T   3,349     4,219      21% (-870)   MacBook Pro 16\" ricondizionato con chip Apple M2 Max, CPU 12‐core e GPU 38‐core - Grigio siderale   \n  FNWE3T   3,349     4,219      21% (-870)   MacBook Pro 16\" ricondizionato con chip Apple M2 Max, CPU 12‐core e GPU 38‐core - Argento           \n  FUW63T   3,979     4,679      15% (-700)   MacBook Pro 16\" ricondizionato con chip Apple M3 Max, CPU 16‐core e GPU 40‐core - Nero siderale                   \n```\n\n#### Products\n\nRefurbished supports the following products from the refurbished section of the Apple Store:\n\n- `accessories`\n- `airpods`\n- `appletvs`\n- `homepods`\n- `macs`\n- `iphones`\n- `ipads`\n- `watches`\n- `clearance`\n\n#### Output formats\n\nRefurbished supports several output formats:\n\n- `text`\n- `json`\n- `ndjson`\n- `csv`\n\nHere are a few examples.\n\n##### Text\n\n```shell\n$ rfrb it ipads --max-price 539\n                                             Refurbished Products                                              \n                                                                                                               \n  Model     Current   Previous   Saving      Name                                                       \n ────────────────────────────────────────────────────────────────────────────────────────────────────── \n  FUWA3ZM   79        89         11% (-10)   Apple Pencil (USB‐C) ricondizionata                        \n  FCM84TY   339       409        17% (-70)   iPad Wi-Fi 64GB ricondizionato - Blu (decima generazione)  \n```\n\n##### JSON\n\n```shell\n$ rfrb it ipads --max-price 539 --format json\n[\n  {\n    \"name\": \"Apple Pencil (USB\\u2010C) ricondizionata\",\n    \"family\": \"ipad\",\n    \"store\": \"it\",\n    \"url\": \"https://www.apple.com/it/shop/product/FUWA3ZM/A/apple-pencil-usb%E2%80%91c-ricondizionata\",\n    \"price\": 79.0,\n    \"previous_price\": 89.0,\n    \"savings_price\": 10.0,\n    \"saving_percentage\": 0.11235955056179775,\n    \"model\": \"FUWA3ZM\"\n  },\n  {\n    \"name\": \"iPad Wi-Fi 64GB ricondizionato - Blu (decima generazione)\",\n    \"family\": \"ipad\",\n    \"store\": \"it\",\n    \"url\": \"https://www.apple.com/it/shop/product/FCM84TY/A/ipad-wi-fi-64gb-ricondizionato-blu-decima-generazione\",\n    \"price\": 339.0,\n    \"previous_price\": 409.0,\n    \"savings_price\": 70.0,\n    \"saving_percentage\": 0.17114914425427874,\n    \"model\": \"FCM84TY\"\n  }\n]\n```\n\n##### NDJSON\n\n```shell\n$ rfrb it ipads --max-price 539 --format ndjson\n{\"name\": \"Apple Pencil (USB\\u2010C) ricondizionata\", \"family\": \"ipad\", \"store\": \"it\", \"url\": \"https://www.apple.com/it/shop/product/FUWA3ZM/A/apple-pencil-usb%E2%80%91c-ricondizionata\", \"price\": 79.0, \"previous_price\": 89.0, \"savings_price\": 10.0, \"saving_percentage\": 0.11235955056179775, \"model\": \"FUWA3ZM\"}\n{\"name\": \"iPad Wi-Fi 64GB ricondizionato - Blu (decima generazione)\", \"family\": \"ipad\", \"store\": \"it\", \"url\": \"https://www.apple.com/it/shop/product/FCM84TY/A/ipad-wi-fi-64gb-ricondizionato-blu-decima-generazione\", \"price\": 339.0, \"previous_price\": 409.0, \"savings_price\": 70.0, \"saving_percentage\": 0.17114914425427874, \"model\": \"FCM84TY\"}\n\n```\n\n##### CSV\n\n```shell\n$ rfrb it ipads --name 'iPad Air Wi-Fi 64GB' --format csv\nname,family,store,url,price,previous_price,savings_price,saving_percentage,model\niPad Air Wi-Fi 64GB ricondizionato - Oro (terza generazione),ipad,it,https://www.apple.com/it/shop/product/FUUL2TY/A/iPad-Air-Wi-Fi-64GB-ricondizionato-Oro-terza-generazione,479.00,559.00,80.00,0.14,FUUL2TY\niPad 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.00,639.00,100.00,0.16,FYFQ2TY\niPad Air Wi-Fi 64GB ricondizionato - Grigio siderale (quarta generazione),ipad,it,https://www.apple.com/it/shop/product/FYFM2TY/A/iPad-Air-Wi-Fi-64GB-ricondizionato-Grigio-siderale-quarta-generazione,539.00,639.00,100.00,0.16,FYFM2TY\n```\n\n### As a Python Library\n\nThe same search using the `refurbished` package in your own project:\n\n```shell\n\u003e\u003e\u003e\n\u003e\u003e\u003e from refurbished import Store\n\u003e\u003e\u003e store = Store('it')\n\u003e\u003e\u003e\n\u003e\u003e\u003e for mac in store.get_macs(min_saving=300):\n...   print(mac.name, mac.price)\n...\nMacBook Pro 13,3\" ricondizionato con Intel Core i5 quad‐core a 2,4GHz e display Retina - Grigio siderale 1679.00\nMacBook Pro 13,3\" ricondizionato con Intel Core i5 quad-core a 2,0GHz e display Retina - Argento 1889.00\nMacBook Pro 13,3\" ricondizionato con Intel Core i5 quad‐core a 2,0GHz e display Retina - Grigio siderale 1889.00\nMacBook Pro 13,3\" ricondizionato con Intel Core i5 quad-core a 2,0GHz e display Retina - Argento 2109.00\n```\n\n## Built With\n\n- [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/)\n- [price-parser](https://github.com/scrapinghub/price-parser)\n- [pydantic](https://pydantic-docs.helpmanual.io/)\n- [requests](https://requests.readthedocs.io/en/master/)\n- [rich](https://github.com/Textualize/rich)\n\n## Development\n\nIf you want make some changes or contributed, please check the [development.md](docs/development.md) guide in the `docs` folder.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://gist.github.com/zmoog/76aef48ad9d9faa096c41c7b16f2fc7c) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags). \n\n## Authors\n\n- **Maurizio Branca** - *Initial work* - [zmoog](https://github.com/zmoog)\n- **Yizhou \"Andi\" Cui** - *Improved parser* - [AndiCui](https://github.com/AndiCui)\n- **Grant** - *Dockerfile* - [Firefishy](https://github.com/Firefishy)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoog%2Frefurbished","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmoog%2Frefurbished","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoog%2Frefurbished/lists"}