Hello,
I am new to this community but not new to aviation and plane spotting. (Favorite aircraft consist of; L-1011, A-6 Intruder, J-3 Cub)
I am currently a data engineer for a 3PL company and trying to build out a SQLite db regarding aircraft activity over my house as a personal project. Ive searched through previous community post but cannot find a related issue similar to mine at this time.
I currently have the SQlite with a simple table resembled to the code below:
cursor.execute('''
CREATE TABLE IF NOT EXISTS flights (
id INTEGER PRIMARY KEY AUTOINCREMENT,
flight_id TEXT,
aircraft_type TEXT,
registration TEXT,
latitude REAL,
longitude REAL,
altitude REAL,
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
)
''')
Where my my issue arises is within an SSLError upon pinging the flightaware API, my code below:
# Fetch flight data from the API
response = requests.get('https://aeroapi.flightaware.com/aeroapi', params={'API_KEY': 'api-karl'})
# Process the response JSON
data = response.json()
>>SSLError: HTTPSConnectionPool(host='aeroapi.flightaware.com', port=443): Max retries exceeded with url: /aeroapi?API_KEY=api-karl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))<<
I do not have a receiver as some people have in this community so looking for ways to work around that.
I Would greatly appreciate some shared wisdom with scrapping live data and what is recommended + dos/donts. Granted i can use data provided by the DOT but that while accurate is often months or so behind and does not offer filtered data specific to my area.
I do apologize if this is a “green” question or if it has been asked previously in a different way.
Thank you all and safe travels
-K