День добрый,
подскажите как возмозжно исправить данную ошибку при выполнении GET запроса к api.
#!/usr/bin/env python3
import urllib
from urllib.request import urlopen
html = urlopen("https://some_api/")
contents = html.read()
текст ошибки:
html = urlopen("https://mabbox.bytel.fr/api/v1/lan/ip")
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 1393, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open
raise URLError(err)
urllib.error.URLError: