A
A
Alikhan2021-10-24 16:07:48
Python
Alikhan, 2021-10-24 16:07:48

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

2 answer(s)
H
Hanneman, 2021-10-24
@Hanneman

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.

V
Vindicar, 2021-10-24
@Vindicar

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 question

Ask a Question

731 491 924 answers to any question