def __init__(self): self.MusicsearchAPI = 'http://music.163.com/api/search/get' self.headers = { 'Accept': '*/*', 'Accept-Encoding': 'gzip,deflate,sdch', 'Accept-Language': 'zh-CN,zh;q=0.8,gl;q=0.6,zh-TW;q=0.4', 'Connection': 'keep-alive', 'Content-Type': 'application/x-www-form-urlencoded', 'Host': 'music.163.com', 'Referer': 'http://music.163.com/search/', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36' } self.conn = ConnectMysql.new_connect()
def __init__(self): self.conn = ConnectMysql.new_connect()
def __init__(self): self.DownloadAPI = 'http://music.163.com/song/media/outer/url?id={}' self.conn = ConnectMysql.new_connect() self.SongURL = 'http://music.163.com'
def __init__(self): self.conn = ConnectMysql.new_connect() self.superpwd = 'cdq'