Browse Source

Update web-search.py

Coder 4 years ago
parent
commit
d792fb98cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web-search.py

+ 1 - 1
web-search.py

@@ -28,7 +28,7 @@ print('The top %d results from the web are:' %(int_result_num))
 
 
 start = time()
 start = time()
 for url in search(search_query, tld='com', stop=int_result_num):
 for url in search(search_query, tld='com', stop=int_result_num):
-    print(url)
+    print(url + " - %s" %(url.split('/')[2]))
 end = time()
 end = time()
 
 
 print('Found %d results from the web in %s' %(int_result_num, end - start) + ' seconds.')
 print('Found %d results from the web in %s' %(int_result_num, end - start) + ' seconds.')