import requests import pymysql def GetConn(brand): rawBrand = "" database ="" if brand in ["ugg","hdugg","ecco"]: rawBrand =brand else: return None if brand == "" pymysql.connect(host=brand+"", user='root', password='plmPLM0.', database='TESTDB') if __name__ == "__main__": print("p")