def getConfig(serv): url = 'http://vpn.hidemyass.com/vpnconfig/client_config.php?win=1&loc=%s' return urlGet(url % serv)
def getServerList(): url = 'http://vpn.hidemyass.com/vpnconfig/countries.php' countryListRaw = urlGet(url) countryList = [c.strip(' ').replace(' ', '+') for c in countryListRaw.split('\n')] return countryList