from apis import GoogleDistanceMatrix import os os.environ["http_proxy"] = "http://127.0.0.1:7890" os.environ["https_proxy"] = "http://127.0.0.1:7890" gdm = GoogleDistanceMatrix() print(gdm.run_online("Los Angeles","San Diego",'taxi'))