Create a FLASK webservice that takes as input an IP or domain name and returns traceroute using google colab code. Here is how you create a basic webservice: https://reintech.io/blog/create-web-service-python
Request the digital ocean webservice from the html map, probably using AJAX.
Localhost: CORS wont let me call the IP geolocation API at all
DigitalOcean Box: Won't let me use the IP geolocation API because it uses http instead of https, im gonna look for one that uses https and is free.