Exemplo n.º 1
0
def queryGroupIndex(groupName: str) -> []:
    url = 'http://liansai.500.com/index.php'
    parameters = {
        'c': 'score',
        'a': 'getmatch',
        'stid': '12379',
        'round': groupName
    }
    response = wcNetwork.responseOfGet(url, wcNetwork.headerLeague, parameters)
    return json.loads(response)
Exemplo n.º 2
0
def queryAsianIndex(matchID: str) -> []:
    url = 'http://odds.500.com/fenxi1/inc/yazhiajax.php'
    parameters = {
        'fid': matchID,
        'id': 5,
        'r': 1,
        't': str(int(time.time() * 1000))
    }
    response = wcNetwork.responseOfGet(url, wcNetwork.headerOdds, parameters)
    return json.loads(response)
Exemplo n.º 3
0
def queryEuropeanIndex(matchID: str) -> []:
    url = 'http://odds.500.com/fenxi1/json/ouzhi.php'
    parameters = {
        'fid': matchID,
        'cid': 5,
        'r': 1,
        'type': 'europe',
        '_': str(int(time.time() * 1000))
    }
    response = wcNetwork.responseOfGet(url, wcNetwork.headerOdds, parameters)
    return json.loads(response)
Exemplo n.º 4
0
def queryScoreIndex(matchID:str) -> str:
	url = 'http://odds.500.com/fenxi/bifen-' + matchID + '.shtml'
	parameters = {'cids':5}
	response = wcNetwork.responseOfGet(url, wcNetwork.headerScore, parameters)
	htmlString = response.decode('gb2312')
	return htmlString
Exemplo n.º 5
0
def queryKnockoutIndex() -> []:
    url = 'http://liansai.500.com/index.php'
    parameters = {'c': 'match', 'a': 'getmatch', 'sid': '4667'}
    response = wcNetwork.responseOfGet(url, wcNetwork.headerLeague, parameters)
    return json.loads(response)