Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!

[Sursa] Python Google Search

View previous topic View next topic Go down

[Sursa] Python Google Search

Post  Karma on Sun Jul 31, 2011 7:43 am

Code:
//  Script that starts a google search with specified criteria.



import urllib

class main(object):
    def addExtension(self):
        search_criteria = raw_input("Insert Google search here: ")
        print \
        print "Searching..."
        webPage = urllib.FancyURLopener({})
        readWeb = webPage.open("http://www.google.com/search?hl=en&q="+search_criteria+"&btnG=Search")

    def runIt(self):
        self.addExtension()

M = main()
M.runIt()
avatar
Karma
Admin
Admin

Mesaje : 1092
Data de inscriere : 2011-04-22
Varsta : 26
Localizare : Craiova

View user profile http://team-bluewater.forumz.ro

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum