Opening the following CSV file with pandas in a local Jupyter notebook on my laptop works well:
pd.read_csv('http://fonetik.fr/foo.csv')
However, when I try the same line of code in a Google Colab notebook, the notebook displays the following error:
CertificateError Traceback (most recent call last)
<ipython-input-27-030762f24a0e> in <module>()
----> 1 df = pd.read_csv('http://fonetik.fr/foo.csv')
/usr/lib/python3.6/ssl.py in match_hostname(cert, hostname)
325 raise CertificateError("hostname %r "
326 "doesn't match either of %s"
--> 327 % (hostname, ', '.join(map(repr, dnsnames))))
328 elif len(dnsnames) == 1:
329 raise CertificateError("hostname %r "
CertificateError: hostname 'fonétik.fr' doesn't match either of 'fonetik.fr', 'www.fonetik.fr', 'www.xn--fontik-dva.fr', 'xn--fontik-dva.fr'
I have just checked the fonetik.fr certificate and it is valid. Thus, I do not undersand why Jupyter Colab raises this error. Maybe because of a redirection of some sort between an IDA server and a non IDA server? Is there a solution to solve that?
You may think I should haved put foo.csv file on Google Drive first to avoid fecthing it on a third-party server. But I can not use this option given that the real foo.csv I want to use is huge and too big to be stored on my Google Drive.