Answer the question
In order to leave comments, you need to log in
How to run a Python script uploaded to the hosting when clicking on a link?
This is my weird question. Let's say I have a python script uploaded to the hosting. And I want this script to run on my computer when I click on the link. But I don't know how to implement it and what hosting to use.
Answer the question
In order to leave comments, you need to log in
When you click on a link to run the code on your local machine? Yes, then hackers would have died out as a species.
You have a little lack of understanding of how it all works. Moreover, well, no one forbids you to place the code on the link, by clicking on which your browser will download it to you as a standard, and then you can do whatever you want with this script - run it locally, but this will be your responsibility.
The script should be run on which computer? Hosted? Those. you, roughly speaking, need a website in python? Look towards Flask, it is simple and straightforward. Well, look for hosting. At worst, you can rent a virtual machine (VPS) and install the necessary software there.
But if on the computer of the one who clicked, well, I'm sorry, it's not fate. If the client decides to download and run your script, then another matter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question