Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

204
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda