GoogleDiggerTool.py

Bulldog
by Bulldog · 3 posts
9 years ago in Python
Posted 9 years ago · Author
So recently ive been learning programming in python. along with a couple other languages. but this is something i made, while thinking what to make in python. besides this basic programe. i got ideas of other things to make that may be useful. in imvu's direction tho. 8). anyway here is my code it works for me. i have tested out on IE ( & google chrome). i have not tested in firefox. let me know if it works on your end. btw no cool gui just console. guess im oldschool? lol. i dont find it useful anough to make gui anyway. i have compiled the .py script into an exe, for those who dont have python installed. i will upload it if requested.

For those who don't have python installed download the exe: https://www.dropbox.com/s/dwhoibqvk3965h6/GooglediggerToolv1.zip?dl=0




Now for those of you who do know python. or atleast anough to run this module:

Code
################### | WWW.GOOGLE.COM /DIGGER TOOL | ##############################                 
######## ########## | by: BULLDOG : (5:16:AM  7/28/15)| ############################
####### searchWords = ["Imvu photoshop tuts"] // this could be used to store keywords##
##################################################################################

import webbrowser

print(" * WWW.GOOGLE.COM || DIGGER TOOL * \n")

#### funtion #2 begins ###########

def searchFunction():
 
    searchThis = "https://www.google.com/"

    lookup_This = str(raw_input("Google-Search: "))

    if lookup_This != "":
 
       webbrowser.open(searchThis + '#q=' + lookup_This)
       restart_Function()

    else:
     print("Something went wrong. could not search" + " re-directing. to google.com..")
     webbrowser.open(searchThis)

######## function ends #############



###### function #1 #######
     
def restart_Function():
  options = str(raw_input("PRESS 'T' TO SEARCH-NEW: "))
  if options == "t":
     searchFunction()

  else:
    webbrowser.close()
######### function ends ######

searchFunction()







win_cmd = raw_input('') # Don't die on me Jim!
Last edited by Bulldog on Sat Aug 29, 2015 11:10 pm, edited 1 time in total.
Posted 9 years ago
I don't really know python but I get the basics behind what this does. One question though, does this use the default system web browser or does python have it's own built in browser?
Posted 9 years ago · Author
D.M wrote:
I don't really know python but I get the basics behind what this does. One question though, does this use the default system web browser or does python have it's own built in browser?


It uses the system's web browser. wich ever browser you have set to default.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT