Skip to content

Commit f77e132

Browse files
author
Ankit Agarwal
committed
Adding comments- author, description, usage and version
1 parent 36395ab commit f77e132

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

google.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
"""
2+
Author: Ankit Agarwal (ankit167)
3+
Usage: python google.py <keyword>
4+
Description: Script googles the keyword and opens
5+
top 5 (max) search results in separate
6+
tabs in the browser
7+
Version: 1.0
8+
"""
9+
110
import webbrowser, sys, pyperclip, requests, bs4
211

3-
#
4-
# Opens 1 (min) to 5 (max) tabs in browser with top search links.
5-
# (One tab for each link)
6-
#
712
def main():
813
if len(sys.argv) > 1:
914
keyword = ' '.join(sys.argv[1:])

0 commit comments

Comments
 (0)