def getmoviedetails(query): movie_detail = None URL = getURL(query) proxy = deskwidutils.getproxy() #proxy = None soup = getsoup(URL, proxy) if soup is not None: movie_detail = fetchmoviedetails(soup) return movie_detail
def deskwid(): proxy = deskwidutils.getproxy() consumer_key = deskwidutils.getconsumerkey() consumer_secret = deskwidutils.getconsumersecret() access_token_key = deskwidutils.getaccesstokenkey() access_token_secret = deskwidutils.getaccesstokensecret() api = twitter.Api(consumer_key, consumer_secret,access_token_key, access_token_secret, proxy=proxy) DeskwidWindow(api) gtk.main()