Merge pull request #347 from rahulkarda/master

Added Google Maps Finder script
This commit is contained in:
Advaita Saha 2022-10-11 10:54:05 +05:30 committed by GitHub
commit 2c220429fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.")