Skip to content

Commit 3d6c9b7

Browse files
author
Ishaq Khan
committed
finished web module
1 parent ac5ba6e commit 3d6c9b7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

project/googleMaps.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import webbrowser, sys, pyperclip
2+
sys.argv #arguments
3+
4+
#check if command arguments are
5+
6+
if len(sys.argv) > 1:
7+
address = ''.join(sys.argv[1:])
8+
else:
9+
address = pyperclip.paste()
10+
url = 'https://www.google.com/maps/place' + address
11+
webbrowser.open(url)
12+
13+
14+

webbrowsertut.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import webbrowser
2+
webpage = 'https://www.google.co.uk'
3+
webbrowser.open(webpage)
4+
5+
6+

0 commit comments

Comments
 (0)