How to use Python to execute a cURL command?
For the sake of simplicity, you should consider using the Requests library. An example with JSON response content would be something like: import requests r = requests.get(‘https://github.com/timeline.json’) r.json() If you look for further information, in the Quickstart section, they have lots of working examples. For your specific curl translation: import requests url=”https://www.googleapis.com/qpxExpress/v1/trips/search?key=mykeyhere” payload = open(“request.json”) … Read more