ValueError: Invalid URL - Illegal character in query at index 48: https://api.openweathermap.org/data/2.5/weather?{"lat":38.652330, "lon":-121.189773, "appid":"8a639bbc5012f64a5e334c89b9d02e28"}
According to the documentation - Dictionary headers - A dictionary of HTTP headers to send with the request. Defaults to None. [optional]
Answer seems to be yes. Seems like you should do something like headers = {'someKey':'someValue'}. You create a dictionary with curly brackets and pairs of keys and values' myDict = {'key1':'someValue1', 'key2':'anotherValue'} etc.