What is the code that downloads and exec a file from direct link in python !? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

What is the code that downloads and exec a file from direct link in python !?

downloading in python

21st Nov 2016, 7:57 PM
Hadj Hadji
Hadj Hadji - avatar
2 Réponses
+ 2
Sounds like you're planning to get SoloLearn servers to download and execute a file. I doubt it will work but let me know if it does ;)
21st Nov 2016, 9:36 PM
Arthur Busser
Arthur Busser - avatar
+ 1
if downloading a file from a website or a server is what you want to do, you can use http.get (link doesn't work its the name of the function). its a html function that can be used with a lot of python web libraries. i cant name one right now, but i'm sure you will figure it out with a couple of google searches!
21st Nov 2016, 8:45 PM
Nyk
Nyk - avatar