How do I deploy my python script through clicking a button on a web page?

I have a working basic python web scraper (using selenium, BeautifulSoup, pandas) that scrapes 8 tables on a stocks page, those tables are sent to data frames which are then exported to a xlsx file.

I run the .py file from iPython or Terminal and it works great. I am new to Python as I come from a front end web designer background. I want to be able to have a site with a button of some sorts where whenever the user clicks it, my python script will run and they will be able to download the xlsx file on their computer.

I can build the website no problems just no experience doing so in Python. I have looked into Flask and using Heroku for deployment but found it confusing. Before I do more research does anyone know if

  1. what I want is possible

  2. any recommendations