Fetch warranty info and save to CSV. Supported vendor:
- Lenovo: laptop
python3 main.py -sn "./sn.txt" -csv "./warranty.csv"
The class LenovoWarranty
stores raw fetched warranty data and processed data in self.collection
, it will avoid fetch SN that are already fetched.
- Initiate:
warranty = LenovoWarranty()
- Add SN then fetch and process:
warranty.add("./sn.txt")
(run this multiple times to add from different files) - Write finished to CSV:
warranty.save("./warranty.csv")
- Check current status:
warranty.status()
- Avoid duplicated processing
- Find the correct way to process Lenovo warranty data based on how Lenovo website processing using JS