Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 4
0
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
Esempio n. 5
0
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