Added Google Maps Finder script

This commit is contained in:
Rahul 2022-10-11 08:23:19 +05:30
parent 00a7e6ee14
commit b871192c63
2 changed files with 17 additions and 0 deletions

View File

@ -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"

View File

@ -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.")