I'm trying to pull a bit of information from a json api using python, but it spits back the error in the title
from datetime import datetime
starttime = data["properties"]["periods"][0]["startTime"]
datetime_object = datetime.strptime(starttime, '%Y %m %d %H %M %S %H %M %S')
the "starttime" variable is using "2022-05-23T20:00:00-07:00", but the "T" and "-" are throwing off the command.
And note that I'm pulling the API using a webscraper, so outright changing the Json isn't possible