From 2d022c1a36d5d0ba721cc59aa7458a1c788c5caf Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Tue, 26 Jan 2016 11:41:22 +0530 Subject: [PATCH 1/7] Updated search.py Added functionality to search query on all engines at the same time. --- search.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/search.py b/search.py index 9438572..6ba78ea 100644 --- a/search.py +++ b/search.py @@ -6,6 +6,7 @@ menu[4]="DuckDuckGo" menu[5]="Ecosia" menu[6]="Exit()" +menu[7]="All()" print "#################################" print " Choose Search Engine - > Fire Query" print " By Shashi Prakash Agarwal" @@ -30,5 +31,11 @@ elif selection == '6': print "Bye Bye!" break + elif selection == '7': + webbrowser.open('http://google.com/search?q='+search_query) + webbrowser.open('http://yahoo.com/search?p='+search_query) + webbrowser.open('http://dogpile.com/search/web?q='+search_query) + webbrowser.open('http://duckduckgo.com/?q='+search_query) + webbrowser.open('http://ecosia.com/search?q='+search_query) else: print "Unknown Option Selected!" From a8f4e58e4c0b40de141421d2441311274810cb03 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Tue, 26 Jan 2016 11:43:56 +0530 Subject: [PATCH 2/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a7dd844..320b791 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # PythonImp Collection of interesting python scripts designed to automate certain tasks. +
Module 1: Search Engine (search.py) +
This module helps you in executing search queries on multiple search engines with a single input and saves your time from entering the query on different search engines individually. + From 89ee6e96597a6ed390f3f9d353a122caeaa2d747 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Wed, 27 Jan 2016 17:34:40 +0530 Subject: [PATCH 3/7] Created autoload.py This script loads multiple URLs entered in a text file. Imagine if you had to visit a series of 100 URLs every day, it would be too cumbersome. This script lets you enter it in a text file for once and get everything loaded at the click of a button. --- auto-load.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 auto-load.py diff --git a/auto-load.py b/auto-load.py new file mode 100644 index 0000000..7a43190 --- /dev/null +++ b/auto-load.py @@ -0,0 +1,7 @@ +#Auto Load multiple URLs from a text file +#By Shashi Prakash Agarwal +import webbrowser +with open('a.txt') as f: + for line in f: + webbrowser.open(line) +#Ensure that a.txt exists and contains URLs separated by line break (i.e. one URL per line) From a315e95ccad3280433c285e4cfc2faa3988afd7f Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Wed, 27 Jan 2016 17:37:20 +0530 Subject: [PATCH 4/7] Create a.txt This file is required for autoload.py to function. --- a.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 a.txt diff --git a/a.txt b/a.txt new file mode 100644 index 0000000..7bd18c4 --- /dev/null +++ b/a.txt @@ -0,0 +1,5 @@ +http://google.com +http://rajeevprakash.com +http://techite.com +http://yahoo.com +http://money.cnn.com From 987de8a413dc2712c5baeb0f4f10a2fe1b6ffdc8 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Wed, 27 Jan 2016 17:38:29 +0530 Subject: [PATCH 5/7] Rename auto-load.py to autoload.py --- auto-load.py => autoload.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename auto-load.py => autoload.py (100%) diff --git a/auto-load.py b/autoload.py similarity index 100% rename from auto-load.py rename to autoload.py From ae4db3e9a6d09f768836856e9f644509756dbb2d Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Wed, 27 Jan 2016 17:41:01 +0530 Subject: [PATCH 6/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 320b791..399476d 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,7 @@ Collection of interesting python scripts designed to automate certain tasks.
Module 1: Search Engine (search.py)
This module helps you in executing search queries on multiple search engines with a single input and saves your time from entering the query on different search engines individually. +
Module 2: Auto Load URLs (autoload.py) +
This module helps you in loading several URLs into multiple browsers at the same time. Imagine a situation where you have to browse 30 websites one by one. Everytime going to the bookmarks and opening URL is actually boring. With this module, all you need to do is: enter all such URLs in a.txt and run this module. + From 30573586d52012ab97c3958314357949a45c0829 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Agarwal Date: Wed, 27 Jan 2016 17:41:42 +0530 Subject: [PATCH 7/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 399476d..07aa20b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ Collection of interesting python scripts designed to automate certain tasks.
Module 1: Search Engine (search.py)
This module helps you in executing search queries on multiple search engines with a single input and saves your time from entering the query on different search engines individually.
Module 2: Auto Load URLs (autoload.py) -
This module helps you in loading several URLs into multiple browsers at the same time. Imagine a situation where you have to browse 30 websites one by one. Everytime going to the bookmarks and opening URL is actually boring. With this module, all you need to do is: enter all such URLs in a.txt and run this module. +
This module helps you in loading several URLs into multiple browsers at the same time. Imagine a situation where you have to browse 30 websites one by one every other day. Everytime going to the bookmarks and opening URL is actually boring. With this module, all you need to do is: enter all such URLs in a.txt and run this module.