Code to perform google search from terminal
diff --git a/google.py b/google.py
new file mode 100755
index 0000000000..775cc5bf55
--- /dev/null
+++ b/google.py
@@ -0,0 +1,30 @@
+"""
+Author: Ankit Agarwal (ankit167)
+Usage: python google.py <keyword>
+Description: Script googles the keyword and opens
+             top 5 (max) search results in separate
+             tabs in the browser
+Version: 1.0
+"""
+
+import webbrowser, sys, pyperclip, requests, bs4
+
+def main():
+	if len(sys.argv) > 1:
+		keyword = ' '.join(sys.argv[1:])
+	else:
+		# if no keyword is entered, the script would search for the keyword
+		# copied in the clipboard
+		keyword = pyperclip.paste()
+
+	res=requests.get('http://google.com/search?q='+	keyword)
+	res.raise_for_status()
+	soup = bs4.BeautifulSoup(res.text)
+	linkElems = soup.select('.r a')
+	numOpen = min(5, len(linkElems))
+
+	for i in range(numOpen):
+		webbrowser.open('http://google.com' + linkElems[i].get('href'))
+
+if __name__ == '__main__':
+	main()

The script is used to search for a keyword in google from the terminal. Top x (say 5) web pages will be displayed in separate tabs in the browser.