Hello,
One key to reading URLs in a Python Turtle Repl (using Skulpt) is to use
The second key ... is that it because of cross-origin restrictions, this library can only open https URLs that are either:
According to Wikipedia:
Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.
import urllib.request
my_file = urllib.request.urlopen("CORS-enabled-HTTPS-URL-here")
print my_file.read()
Another way to bypass the CORS restriction is to use a CORS proxy service to read the restricted resource.
I hope that helps.