diff --git a/scripts/google_maps_finder/README.md b/scripts/google_maps_finder/README.md new file mode 100644 index 0000000..a376fc9 --- /dev/null +++ b/scripts/google_maps_finder/README.md @@ -0,0 +1,6 @@ +# Google Maps Finder +This is a simple script that will open the default web browser to the Google maps of the address given as the command line argument. + +## Usage +1. Clone the repo +2. Run python script.py "place to search" \ No newline at end of file diff --git a/scripts/google_maps_finder/script.py b/scripts/google_maps_finder/script.py new file mode 100644 index 0000000..ee2c5b7 --- /dev/null +++ b/scripts/google_maps_finder/script.py @@ -0,0 +1,11 @@ +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.") + +