python-scripts/scripts/google_maps_finder/script.py

12 lines
227 B
Python
Raw Normal View History

2022-10-11 02:53:19 +00:00
import sys
import webbrowser
if len(sys.argv) > 1:
map_string = ' '.join(sys.argv[1:])
webbrowser.open('https://www.google.com/maps/place/' + map_string)
else:
print("Pass the string as command line argument.")