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

306
Vistas
How to make a text acting as a link in python

How to make a text acting as a link in python. I am using pycharm which supports links so it is not a duplicate of .net console app with hyperlinks? what i want to do is give a link and text to function(no problem if its more complicated than this) eg: i want to do

T = class.methodname(link,text)
print(T)

and if possible i want to able to copy this and still maintain its capabilities like

import pyperclip #this module allows #us to interact with the clipboard lyk
pyperclip.paste(T, copyastext=False, Retain_properties=True)#1st the T which is the first argument is same capital T from before 2nd of all i am just showing what i think it is like 

this i think what should do is copy the text but acts as link Just speculation

The next things is js2py which i have a html and js example which is

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
let text = "Free Web Building Tutorials!";
let result = text.link("https://www.w3schools.com");
document.getElementById("demo").innerHTML = result;
</script>

</body>
</html>

js2py:python example

import js2py
Var=" The previous html file".replace("document","something")
print(js2py.eval_js(Var))

But i can't get this to work any help would be appreciated thanks in advance and my pc is windows 7 64bit

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