import requests import json from edmundsAPI import EdmundsAPI from firebase import firebase firebase = firebase.FirebaseApplication("https://maintenance-api.firebaseio.com/", None) edmunds = EdmundsAPI() makes = edmunds.getMakes() firebase.post('/makes', makes) for make in makes["makes"]: models = edmunds.getModels(make["niceName"]) firebase.post('/models/' + )
import requests import json from edmundsAPI import EdmundsAPI edmunds = EdmundsAPI() make_list = edmunds.getMakes() car_id = edmunds.getID('toyota', 'corolla', '2013') with open("edmunds_data/toyota_maintenance.json", 'w') as fp: json.dump(edmunds.getMaintenanceSchedule(car_id), fp, sort_keys=True, indent=4)