Exemplo n.º 1
0
import requests
import os
import re
from DPL频道列表模板 import lists
file = open("C:\\Users\\Administrator\\PycharmProjects\\频道破解\\湖北广电.txt",
            "r+",
            encoding='utf-8')
f = file.read()
name = re.findall(r'no\n(.+?)\nhttp', f)
url = re.findall(r'http.+?no', f)
print(len(name))
print(len(url))
with open('湖北广电.dpl', 'w', encoding="utf-8") as f:
    f.write('')
with open('湖北广电.dpl', 'a', encoding="utf-8") as f:
    f.write('DAUMPLAYLIST\n' + 'playname=\n' + 'topindex=27\n' +
            'saveplaypos=0\n')
for u in url:
    j = url.index(u)
    (x, y) = lists(name[j], u)
    with open('湖北广电.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) +
            '*played*0\n')
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\湖北广电.dpl')
Exemplo n.º 2
0
pattern1 = re.compile(p1)
name = pattern1.findall(f)
names = []
for x in range(len(name)):
    y = name[x].replace(",", "")
    names.append(y)
#print(names)
p2 = r'http.+?.m3u8'
pattern2 = re.compile(p2)
url = pattern2.findall(f)
#print(len(url))
#print(len(names))
#print(url)
#print(names)
with open('江苏移动418.dpl', 'w', encoding="utf-8") as f:
    f.write('')
with open('江苏移动418.dpl', 'a', encoding="utf-8") as f:
    f.write('DAUMPLAYLIST\n' + 'playname=\n' + 'topindex=27\n' +
            'saveplaypos=0' + '\n')
for u in url:
    j = url.index(u)
    (x, y) = lists(names[j], u)
    with open('江苏移动418.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) +
            '*played*0\n')
file.close()
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\江苏移动\\江苏移动418.dpl')
Exemplo n.º 3
0
        r=geturl(url,headers=headers)
        print(r)
        '''
    room_id=re.findall(r'"anchor_id":(\d*),',f)
    room_name=re.findall(r'anchor_name":"(.+?)"',f)
    print(len(room_id))
    print(len(room_name))
    #if n==1:
       # del room_name[0]
    class_allroom=dict(zip(room_name,room_id))
    #del class_allroom['下载APP']
    for x,y in class_allroom.items():
        room_url='https://egame.qq.com/'+y
        res=geturl(room_url,headers=headers)
        playurl=re.findall(r'playUrl":"(.+?.flv)',res)
        if len(playurl)==0:
           playurl='http://3954.liveplay.myqcloud.com/live/3954_320942587.flv'
        else:
            playurl=playurl[0]
        playurls.append(playurl)
        print(x+'\t',playurl)
    print('----------------------')
    with open(i+'.dpl', 'w', encoding="utf-8") as f: f.write('')
    with open(i+'.dpl', 'a', encoding="utf-8") as f: f.write('DAUMPLAYLIST\n'+'playname=\n'+'topindex=27\n'+'saveplaypos=0\n')
    for u in playurls:
        j=playurls.index(u)
        (x,y)=lists(room_name[j], u)
        with open(i+'.dpl', 'a+', encoding="utf-8") as f: f.write(str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) + '*played*0\n')
    os.system('C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe')
    os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\企鹅电竞\\'+i+'.dpl')
file.close()
Exemplo n.º 4
0
with open('北斗TV.dpl', 'w', encoding="utf-8") as f:
    f.write('')
for i in name_abbr:
    i = i.replace('name_abbr":"', '').replace('"', '')
    id.append(i)
print(id)
for x in http:
    x = x.replace('\\', '').replace('","', '')
    #print(x)
    list.append(x)
list2 = list[0:len(list) - 1:2]
for y in name:
    y = y.replace(':"update","name":"', '').replace('"', '')
    name2.append(y)
    #print(y)
d = dict(zip(name2, list2))
with open('北斗TV.dpl', 'a', encoding="utf-8") as f:
    f.write('DAUMPLAYLIST\n' + 'playname=\n' + 'topindex=27\n' +
            'saveplaypos=0' + '\n')
for m in list2:
    #print(x,y)
    j = list2.index(m)
    (x, y) = lists(name2[j], m)
    with open('北斗TV.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) +
            '*played*0\n')
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\Channel\\辽宁\\北斗TV.dpl')
Exemplo n.º 5
0
urls = []
for x in roomid:
    i = roomid.index(x)
    url = x
    r = geturl(url, headers=headers)
    n1 = r.find('"sHlsUrl":"')
    n2 = r.find('","', n1)
    r1 = r[n1 + len('"sHlsUrl":"'):n2]
    r2 = r1.replace('\\', '')
    n3 = r.find('"sStreamName":"') + len('"sStreamName":"')
    n4 = r.find('","sFlvUrl":"')
    r3 = r[n3:n4]
    playurl = r2 + '/' + r3 + '.m3u8'
    urls.append(playurl)
    print(title[i], playurl)
with open('虎牙一起看.dpl', 'w', encoding="utf-8") as f:
    f.write('')
with open('虎牙一起看.dpl', 'a', encoding="utf-8") as f:
    f.write('DAUMPLAYLIST\n' + 'playname=\n' + 'topindex=27\n' +
            'saveplaypos=0\n')
for u in urls:
    j = urls.index(u)
    (x, y) = lists(title[j], u)
    with open('虎牙一起看.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) +
            '*played*0\n')
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\虎牙TV\\虎牙一起看.dpl')
Exemplo n.º 6
0
playurls = []
b = list(d.keys())

for x, y in d.items():
    urlr = 'https://www.zhanqi.tv/' + y
    r = geturl(urlr, headers=header)
    VideoLevels = re.findall(r'VideoLevels":"(.+?)"', r)
    a = zqbsurl(streamUrl=VideoLevels[0])
    playurls.append(a)
    print(x, a)
with open('游戏放映室.dpl', 'w', encoding="utf-8") as f:
    f.write('')
with open('游戏放映室.dpl', 'a', encoding="utf-8") as f:
    f.write('DAUMPLAYLIST\n' + 'playname=\n' + 'topindex=27\n' +
            'saveplaypos=0\n')
for u in playurls:
    j = playurls.index(u)
    (x, y) = lists(b[j], u)
    with open('游戏放映室.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) +
            '*played*0\n')
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\战旗直播\\游戏放映室.dpl')
'''
a='\u3016\u5e2b\u843d\u3017\u611f\u6069\u5c0f\u5b81\u7684\u652f\u6301\uff01\uff01\uff01'
b=str(a)
print(b)
'''
Exemplo n.º 7
0
    r = r.text
    key=re.findall(r'live":"(.+?)_',r)
    if key==[]:
        #print(a,r)
        continue
    else:
        key=key[0]
        playurl='http://tx2play1.douyucdn.cn/live/'+key+'_8000p.flv'
        playurls.append(playurl)
        rds.append(a)
        print(a,playurl)
with open('斗鱼.dpl', 'w', encoding="utf-8") as f: f.write('')
with open('斗鱼.dpl', 'a', encoding="utf-8") as f: f.write('DAUMPLAYLIST\n'+'playname=\n'+'topindex=27\n'+'saveplaypos=0\n')
for u in playurls:
    j=playurls.index(u)
    (x,y)=lists(rds[j],u)
    with open('斗鱼.dpl', 'a+', encoding="utf-8") as f: f.write(str(j+1)+x + "\n"+str(j+1)+y+"\n"+str(j+1)+'*played*0\n')
os.system('C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe')
os.system('C:\\Users\\Administrator\\PycharmProjects\\Channel\\直播平台\\斗鱼直播\\斗鱼.dpl')

'''
def __init__(self):
    self.baseUrl = "http://www.douyutv.com/api/v1/"
    self.midReq = "?aid=android&cdn=ws&client_sys=android&time="

def GetStringMD5(self, str):
    m = md5hash.new()
    m.update(str)
    return m.hexdigest()
def request(self, action, param=None):
    t = str(int(time.time()))
Exemplo n.º 8
0
            'saveplaypos=0' + '\n')
urs = []
for x, y in lista.items():
    url = 'http://mobile.sjzntv.cn/app/channel_detail.php?appid=8&appkey=BJaFDrsqqZQelNRXE6EhUXmlfzhq5Rox&device_token=6b07de2166a86e9dbbfb570268574467&_member_id=&version=2.0&app_version=2.0&app_version=2.0&package_name=com.hoge.android.app.wxsjz&system_version=4.4.4&phone_models=VAY_32MOS&ad_group=mobile&channel_id=' + y
    headeers = {
        "user-agent":
        "Mozilla/5.0 (Linux; U; Android 4.4.2; zh-cn; VAY_32MOS Build/KOT49H) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
    }
    r = geturl(url, headers=headeers)
    #print(x,r)
    n1 = r.find('"url":"http') + len('"url":"')
    n2 = r.find('","name"', n1)
    url1 = r[n1:n2]
    url2 = url1.replace("\\", "")
    urs.append(url2)
    print(x, url2)
    with open('石家庄.html', 'a', encoding="utf-8") as f:
        f.write('<p>' + x + url2 + '</p>\n')
for u in urs:
    name = list(lista.keys())
    j = urs.index(u)
    (m, n) = lists(name[j], u)
    with open('石家庄.dpl', 'a+', encoding="utf-8") as f:
        f.write(
            str(j + 1) + m + "\n" + str(j + 1) + n + "\n" + str(j + 1) +
            '*played*0\n')
os.system(
    'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe'
)
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\地方台\\石家庄.dpl')
Exemplo n.º 9
0
        title=i['title']
        if title==' ':
            title='AAAA'
        roomids.append(roomid)
        titles.append(title)
dic=dict(zip(titles,roomids))
for a,b in dic.items():
    print(a,b)
playurls=[]
for x,y in dic.items():
    #print(x,y)
    url='https://live.bilibili.com/'+str(y)
    r=geturl(url,headers=headers)
    #if y==1091450:
     #   print(r)
    playurl=re.findall('url":"(.+?)"',r)
    if playurl==[]:
        a='rtsp://183.59.156.50/PLTV/88888905/224/3221229816/10000100000000060000000009924383_0.smil'
    else:
        a=playurl[0]
    playurl=a.encode('utf-8').decode('unicode_escape')
    playurls.append(playurl)
    print(x+str(y),playurl)
with open('B站直播.dpl', 'w', encoding="utf-8") as f: f.write('')
with open('B站直播.dpl', 'a', encoding="utf-8") as f: f.write('DAUMPLAYLIST\n'+'playname=\n'+'topindex=27\n'+'saveplaypos=0\n')
for u in playurls:
    j=playurls.index(u)
    (x,y)=lists(titles[j], u)
    with open('B站直播.dpl', 'a+', encoding="utf-8") as f: f.write(str(j + 1) + x + "\n" + str(j + 1) + y + "\n" + str(j + 1) + '*played*0\n')
os.system('C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Daum\\PotPlayer 64 bit.exe')
os.system('C:\\Users\\Administrator\\PycharmProjects\\频道破解\\Bilibili\\B站直播.dpl')