-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fetching external URLs #88
Comments
See pyodide/pyodide#662 and pyodide/pyodide#375. You can read a URL with In any case, the browser has many security restrictions which cause trouble for most URLs. Your example isn't |
@alexmojaki Is providing an override of urllib something you are doing in your own packages? Or should I make a Papyros-specific part? It would be similar to input/matplotlib by making urllib functions point to e.g. pyodide.open_url calls. The most common calls can easily be covered by this. |
I have no plans for this, go ahead. |
@winniederidder you may add this to papyros, but note that external connections will be blocked by the CSP on Dodona. |
After some studying, this issue would affect atleast the following libraries: |
This code should output a random haiku (scraped from a web page), but access to external URLS does not seem to be working. Strange limitation for a Python runtime that is already running in a browser (and has BeautifulSoup on board).
The text was updated successfully, but these errors were encountered: