Simple python script to render traceroute output inside google map.
- install python 3.8 or later version.
- sign up into https://ipstack.com/ and get your api key.
- create a google api key and enable google map js api.
- install traceroute.
- pip install -r requirements.txt.
To view the results, simply open the traceroute.html (generated by traceroute.py) in your browser.
$>export IPSTACK_KEY='your ipstack api key'
$>export GMPLOT_KEY='your google api key'
$>python traceroute.py host
$>traceroute host | python traceroute.py
$>traceroute host > route.txt
$>python traceroute.py < route.txt
To view the results, simply open the traceroute.html (generated by traceroute.py) in your browser.
Warning : do not share your traceroute.html, as the google api key is hardcoded inside it by gmplot.