Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
Issue trying to convert Python with Selenium module to JavaScript using Brython

I am currently trying to code a Chrome extension that should run a program in the background, however I have written this code in Python as I am more familiar with this language than JavaScript. Since obviously Chrome extension only works with JavaScript, I am trying to compile my Python code using Brython. My issue is that I have used the Selenium module within my Python code and Brython is having issues detecting it. I've tried including: <body onload="brython({debug:1, pythonpath:['c:\\users\\anastasialauri\\appdata\\local\\programs\\python\\python39\\lib\\site-packages']})"> however an error: Not allowed to load local resource shows up on the html page. Below is my html code trying to test running the Python script. I would appreciate any help please!

<html>
    <head>
        <meta charset="utf-8">
        <script type="text/javascript" src="brython.js"></script>
        <script type="text/javascript" src="brython_stdlib.js"></script>
    </head>
    <body onload="brython({debug:1, pythonpath:['c:\\users\\anastasia lauri\\appdata\\local\\programs\\python\\python39\\lib\\site-packages']})">
        <script type="text/python" src="Applet.py"></script>
    </body>
</html>```
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda