def getUrl(url, myHttpRequest): skey = '' for ck in myHttpRequest.cj: if ck.name == 'skey': skey = ck.value base_url = url base_url = base_url.replace('GTK', str(Tea.getGTK(skey))) return base_url
def getUrl(url,myHttpRequest): skey = '' for ck in myHttpRequest.cj: if ck.name=='skey': skey = ck.value base_url = url base_url = base_url.replace('GTK', str(Tea.getGTK(skey))) return base_url
def getUrl(url,myHttpRequest,account = None): skey = '' for ck in myHttpRequest.cj: if ck.name=='skey': skey = ck.value base_url = url base_url = base_url.replace('GTK', str(Tea.getGTK(skey))) if account is not None: base_url = base_url.replace('QQ',account) return base_url
def getMagicInfo(myhttpRequest, account): skey = '' for ck in myhttpRequest.cj: if ck.name == 'skey': skey = ck.value postData = {'code': '', 'uin': account} base_url = constant.CARDLOGINURL base_url = base_url.replace('GTK', str(Tea.getGTK(skey))) page_content = myhttpRequest.get_response(base_url, postData).read().decode('utf-8') return page_content
def getMagicInfo2(myhttpRequest,account): skey = '' for ck in myhttpRequest.cj: if ck.name=='skey': skey = ck.value postData = { 'uin':constant.USERNAME, 'opuin':account, } base_url = constant.CARDLOGINURL base_url = base_url.replace('GTK', str(Tea.getGTK(skey))) page_content = myhttpRequest.get_response(base_url,postData).read().decode('utf-8') return page_content