Python Django running scripts from client side [duplicate]

I have a Python Django project set up. I have a home.HTML file with a button on it. I want the user of the Python Django website to be able to click the button on the home.HTML page and run the Python script.

A python script such as scrapy which is located on GitHub (could be any other python script on github). I want the button to trigger the function rather than typing in the console.

I then want the result from the script to return in a csv file.

How would this be done, can it be done ?

Back to Top