from pcpartpicker import API
import json
api = API()
supported_parts=api.supported_parts
for supported_part in supported_parts:
with open(supported_part+'.json', 'w') as f:
data_tempt = api.retrieve(supported_part).to_json()
print(data_tempt, file=f) # Second Example
Save it as run.py and type: python run.py to in your current working folder.
This is my code to get all data of https://pcpartpicker.com/
Save it as run.py and type: python run.py to in your current working folder.