- Posts: 2
- Thank you received: 0
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> import requests
>>> UNIX_TIMESTAMP = int(time.time())
>>> UNIX_TIMESTAMP
1498769637
>>> OPENSKY_API_URL = "https://opensky-network.org/api/states/all?time={}".format(UNIX_TIMESTAMP)
>>> response = requests.get(OPENSKY_API_URL)
>>> response
<Response [400]>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.