I have a google spreadsheet that functions as a quote calculator. I am using python-requests and beautifulsoup to:
- Grab values from the google sheet,
- login to a supplier's website
- Access their online quote calculator
- Populate the supplier's online quote form.
- Submit the form
- Scrape their quote data from the resulting html code.
- Populate the google sheet with their cost information
I don't need help with the python code or getting the python code to modify the googlesheet.
what I can't find seemingly anywhere is a good process for calling the python code from within the google sheet.
Ideally, I'd like to have an object in the google sheet (button? link?) that will trigger the web-scraping functionality. I have seen Google Sheets scripts that claim to populate a spreadsheet with scraped data from outside webpages, but these tools don't handle any site with authentication, hence the python angle.
Any suggestions much appreciated.
Everything I've found online explains how to get a process running on GAE to call a Google App script. Nothing about going the other way around.