https://www.wandouys.com/video/play/59872-2-11.html
暂时没写多线程版
代码
import requests
import re
import multiprocessing
def acquire_all_ts(url):
headers = {
'Origin': 'https://www.629055.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36'
}
ts_html = requests.get(url,headers=headers)
# print(ts_html.text)
# print(ts_html.raise_for_status())
all_ts = re.findall(r'out.*?\.ts',ts_html.text)
if all_ts:
return all_ts
url = 'https://cdn-5.haku99.com/hls/2019/05/20/VoGGdUQH/playlist.m3u8'
def download_file():
ts_s = acquire_all_ts(url)
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
}
for i in ts_s:
ts_url = 'https://cdn-5.haku99.com/hls/2019/05/20/VoGGdUQH/'+i.strip()
print(ts_url)
content = requests.get(ts_url,headers=headers,stream=True)
with open('qlyx_ts/'+i,'wb') as f:
for _ in content.iter_content(chunk_size=512):
if _:
f.write(_)
print(i,'下载完成')
download_file()
tsaaa= acquire_all_ts(url)
print('+'.join(tsaaa))
合并 ts 文件
copy/b空格1.ts+2.ts+3.ts.... 空格new.ts
copy/b out000.ts+out001.ts+out002.ts+out003.ts+out004.ts+out005.ts+out006.ts+out007.ts+out008.ts+out009.ts+out010.ts+out011.ts+out012.ts+out013.ts+out014.ts+out015.ts+out016.ts+out017.ts+out018.ts+out019.ts+out020.ts+out021.ts+out022.ts+out023.ts+out024.ts+out025.ts+out026.ts+out027.ts+out028.ts+out029.ts+out030.ts+out031.ts+out032.ts+out033.ts+out034.ts+out035.ts+out036.ts+out037.ts+out038.ts+out039.ts+out040.ts+out041.ts+out042.ts+out043.ts+out044.ts+out045.ts+out046.ts+out047.ts+out048.ts+out049.ts+out050.ts+out051.ts+out052.ts+out053.ts+out054.ts+out055.ts+out056.ts+out057.ts+out058.ts+out059.ts+out060.ts+out061.ts+out062.ts+out063.ts+out064.ts+out065.ts+out066.ts+out067.ts+out068.ts+out069.ts+out070.ts+out071.ts+out072.ts+out073.ts+out074.ts+out075.ts+out076.ts+out077.ts+out078.ts+out079.ts+out080.ts+out081.ts+out082.ts+out083.ts+out084.ts+out085.ts+out086.ts+out087.ts+out088.ts+out089.ts+out090.ts+out091.ts+out092.ts+out093.ts+out094.ts+out095.ts+out096.ts+out097.ts+out098.ts+out099.ts+out100.ts+out101.ts+out102.ts+out103.ts+out104.ts+out105.ts+out106.ts+out107.ts+out108.ts+out109.ts+out110.ts+out111.ts+out112.ts+out113.ts+out114.ts+out115.ts+out116.ts+out117.ts+out118.ts+out119.ts+out120.ts+out121.ts+out122.ts+out123.ts+out124.ts+out125.ts+out126.ts+out127.ts+out128.ts+out129.ts+out130.ts+out131.ts+out132.ts+out133.ts+out134.ts+out135.ts+out136.ts+out137.ts+out138.ts+out139.ts+out140.ts+out141.ts+out142.ts+out143.ts+out144.ts+out145.ts+out146.ts+out147.ts+out148.ts+out149.ts+out150.ts+out151.ts+out152.ts+out153.ts+out154.ts+out155.ts+out156.ts+out157.ts+out158.ts+out159.ts+out160.ts+out161.ts+out162.ts+out163.ts+out164.ts+out165.ts+out166.ts+out167.ts+out168.ts+out169.ts+out170.ts+out171.ts+out172.ts+out173.ts+out174.ts+out175.ts+out176.ts+out177.ts+out178.ts+out179.ts+out180.ts+out181.ts+out182.ts+out183.ts+out184.ts+out185.ts+out186.ts+out187.ts+out188.ts+out189.ts+out190.ts+out191.ts+out192.ts+out193.ts+out194.ts+out195.ts+out196.ts+out197.ts+out198.ts+out199.ts+out200.ts+out201.ts+out202.ts+out203.ts+out204.ts+out205.ts+out206.ts+out207.ts+out208.ts+out209.ts+out210.ts+out211.ts+out212.ts+out213.ts+out214.ts+out215.ts+out216.ts+out217.ts+out218.ts+out219.ts+out220.ts+out221.ts+out222.ts+out223.ts+out224.ts+out225.ts+out226.ts+out227.ts+out228.ts+out229.ts+out230.ts+out231.ts+out232.ts+out233.ts+out234.ts+out235.ts+out236.ts+out237.ts+out238.ts+out239.ts+out240.ts+out241.ts+out242.ts+out243.ts+out244.ts+out245.ts+out246.ts+out247.ts+out248.ts+out249.ts+out250.ts+out251.ts+out252.ts+out253.ts+out254.ts+out255.ts+out256.ts+out257.ts+out258.ts+out259.ts+out260.ts+out261.ts+out262.ts+out263.ts+out264.ts+out265.ts+out266.ts+out267.ts+out268.ts+out269.ts+out270.ts+out271.ts+out272.ts+out273.ts+out274.ts+out275.ts+out276.ts+out277.ts+out278.ts+out279.ts+out280.ts+out281.ts+out282.ts+out283.ts+out284.ts+out285.ts+out286.ts+out287.ts+out288.ts+out289.ts+out290.ts+out291.ts+out292.ts+out293.ts+out294.ts+out295.ts+out296.ts+out297.ts+out298.ts+out299.ts+out300.ts+out301.ts+out302.ts+out303.ts+out304.ts+out305.ts+out306.ts+out307.ts+out308.ts+out309.ts+out310.ts+out311.ts+out312.ts+out313.ts+out314.ts+out315.ts+out316.ts+out317.ts+out318.ts+out319.ts+out320.ts+out321.ts+out322.ts+out323.ts+out324.ts+out325.ts+out326.ts+out327.ts+out328.ts+out329.ts+out330.ts+out331.ts+out332.ts+out333.ts+out334.ts+out335.ts+out336.ts+out337.ts+out338.ts+out339.ts+out340.ts+out341.ts+out342.ts+out343.ts+out344.ts+out345.ts+out346.ts+out347.ts+out348.ts+out349.ts+out350.ts+out351.ts+out352.ts+out353.ts+out354.ts+out355.ts+out356.ts+out357.ts+out358.ts+out359.ts+out360.ts+out361.ts+out362.ts+out363.ts+out364.ts+out365.ts+out366.ts+out367.ts+out368.ts+out369.ts+out370.ts+out371.ts+out372.ts+out373.ts+out374.ts+out375.ts+out376.ts+out377.ts+out378.ts+out379.ts+out380.ts+out381.ts+out382.ts+out383.ts+out384.ts+out385.ts+out386.ts+out387.ts+out388.ts+out389.ts+out390.ts+out391.ts+out392.ts+out393.ts+out394.ts+out395.ts+out396.ts+out397.ts+out398.ts+out399.ts+out400.ts+out401.ts+out402.ts+out403.ts+out404.ts+out405.ts+out406.ts+out407.ts+out408.ts+out409.ts+out410.ts+out411.ts+out412.ts+out413.ts+out414.ts+out415.ts+out416.ts+out417.ts+out418.ts+out419.ts+out420.ts+out421.ts+out422.ts+out423.ts+out424.ts+out425.ts+out426.ts+out427.ts+out428.ts+out429.ts+out430.ts+out431.ts+out432.ts+out433.ts+out434.ts+out435.ts+out436.ts+out437.ts+out438.ts+out439.ts+out440.ts+out441.ts+out442.ts+out443.ts+out444.ts+out445.ts+out446.ts+out447.ts+out448.ts+out449.ts+out450.ts+out451.ts+out452.ts+out453.ts+out454.ts+out455.ts+out456.ts+out457.ts+out458.ts+out459.ts+out460.ts+out461.ts+out462.ts+out463.ts+out464.ts+out465.ts+out466.ts+out467.ts+out468.ts+out469.ts+out470.ts+out471.ts+out472.ts+out473.ts+out474.ts+out475.ts+out476.ts+out477.ts+out478.ts+out479.ts+out480.ts+out481.ts+out482.ts+out483.ts+out484.ts+out485.ts+out486.ts+out487.ts+out488.ts+out489.ts+out490.ts+out491.ts+out492.ts+out493.ts+out494.ts+out495.ts+out496.ts+out497.ts+out498.ts+out499.ts+out500.ts+out501.ts+out502.ts+out503.ts+out504.ts+out505.ts+out506.ts+out507.ts+out508.ts+out509.ts+out510.ts+out511.ts+out512.ts+out513.ts+out514.ts+out515.ts+out516.ts+out517.ts+out518.ts+out519.ts+out520.ts+out521.ts+out522.ts+out523.ts+out524.ts+out525.ts+out526.ts+out527.ts+out528.ts+out529.ts+out530.ts+out531.ts+out532.ts+out533.ts+out534.ts+out535.ts+out536.ts+out537.ts+out538.ts+out539.ts+out540.ts+out541.ts+out542.ts+out543.ts+out544.ts+out545.ts+out546.ts+out547.ts+out548.ts+out549.ts+out550.ts+out551.ts+out552.ts+out553.ts+out554.ts+out555.ts+out556.ts+out557.ts+out558.ts+out559.ts+out560.ts+out561.ts+out562.ts+out563.ts+out564.ts+out565.ts+out566.ts+out567.ts+out568.ts+out569.ts+out570.ts+out571.ts+out572.ts+out573.ts+out574.ts+out575.ts+out576.ts+out577.ts+out578.ts+out579.ts+out580.ts+out581.ts+out582.ts+out583.ts+out584.ts+out585.ts+out586.ts+out587.ts+out588.ts+out589.ts+out590.ts+out591.ts+out592.ts+out593.ts+out594.ts+out595.ts+out596.ts+out597.ts+out598.ts+out599.ts+out600.ts+out601.ts+out602.ts+out603.ts+out604.ts+out605.ts+out606.ts+out607.ts+out608.ts+out609.ts+out610.ts+out611.ts+out612.ts+out613.ts+out614.ts+out615.ts+out616.ts+out617.ts+out618.ts+out619.ts+out620.ts+out621.ts+out622.ts+out623.ts+out624.ts+out625.ts+out626.ts+out627.ts+out628.ts+out629.ts+out630.ts+out631.ts+out632.ts+out633.ts+out634.ts+out635.ts+out636.ts+out637.ts+out638.ts+out639.ts+out640.ts+out641.ts+out642.ts+out643.ts+out644.ts+out645.ts+out646.ts+out647.ts+out648.ts+out649.ts+out650.ts+out651.ts+out652.ts+out653.ts+out654.ts+out655.ts+out656.ts+out657.ts+out658.ts+out659.ts+out660.ts+out661.ts+out662.ts+out663.ts+out664.ts+out665.ts+out666.ts+out667.ts+out668.ts+out669.ts+out670.ts+out671.ts+out672.ts+out673.ts+out674.ts+out675.ts+out676.ts+out677.ts+out678.ts+out679.ts+out680.ts+out681.ts+out682.ts+out683.ts+out684.ts+out685.ts+out686.ts+out687.ts+out688.ts+out689.ts+out690.ts+out691.ts+out692.ts+out693.ts+out694.ts+out695.ts+out696.ts+out697.ts+out698.ts+out699.ts+out700.ts+out701.ts+out702.ts+out703.ts+out704.ts+out705.ts+out706.ts+out707.ts+out708.ts+out709.ts+out710.ts+out711.ts+out712.ts+out713.ts+out714.ts+out715.ts+out716.ts+out717.ts+out718.ts+out719.ts+out720.ts+out721.ts+out722.ts+out723.ts+out724.ts+out725.ts+out726.ts+out727.ts+out728.ts+out729.ts+out730.ts+out731.ts+out732.ts+out733.ts+out734.ts+out735.ts+out736.ts+out737.ts+out738.ts+out739.ts+out740.ts+out741.ts+out742.ts+out743.ts+out744.ts+out745.ts+out746.ts+out747.ts+out748.ts+out749.ts+out750.ts+out751.ts+out752.ts+out753.ts+out754.ts+out755.ts+out756.ts+out757.ts+out758.ts+out759.ts+out760.ts+out761.ts+out762.ts+out763.ts+out764.ts+out765.ts+out766.ts+out767.ts+out768.ts+out769.ts+out770.ts+out771.ts+out772.ts+out773.ts+out774.ts+out775.ts+out776.ts+out777.ts+out778.ts+out779.ts+out780.ts+out781.ts+out782.ts+out783.ts+out784.ts+out785.ts+out786.ts+out787.ts+out788.ts+out789.ts+out790.ts+out791.ts+out792.ts+out793.ts+out794.ts+out795.ts+out796.ts+out797.ts+out798.ts+out799.ts+out800.ts+out801.ts+out802.ts+out803.ts+out804.ts+out805.ts+out806.ts+out807.ts+out808.ts+out809.ts+out810.ts+out811.ts+out812.ts+out813.ts+out814.ts+out815.ts+out816.ts+out817.ts+out818.ts+out819.ts+out820.ts+out821.ts+out822.ts+out823.ts+out824.ts+out825.ts+out826.ts+out827.ts+out828.ts+out829.ts+out830.ts+out831.ts+out832.ts+out833.ts+out834.ts+out835.ts+out836.ts+out837.ts+out838.ts+out839.ts+out840.ts+out841.ts+out842.ts+out843.ts+out844.ts+out845.ts+out846.ts+out847.ts+out848.ts+out849.ts+out850.ts+out851.ts+out852.ts+out853.ts+out854.ts+out855.ts+out856.ts+out857.ts+out858.ts+out859.ts+out860.ts+out861.ts+out862.ts+out863.ts+out864.ts+out865.ts+out866.ts+out867.ts+out868.ts+out869.ts+out870.ts+out871.ts+out872.ts+out873.ts+out874.ts+out875.ts+out876.ts+out877.ts+out878.ts+out879.ts+out880.ts+out881.ts+out882.ts+out883.ts+out884.ts+out885.ts+out886.ts+out887.ts+out888.ts+out889.ts+out890.ts+out891.ts+out892.ts+out893.ts+out894.ts+out895.ts+out896.ts+out897.ts+out898.ts+out899.ts+out900.ts+out901.ts+out902.ts+out903.ts+out904.ts+out905.ts+out906.ts+out907.ts+out908.ts+out909.ts+out910.ts+out911.ts+out912.ts+out913.ts+out914.ts+out915.ts+out916.ts+out917.ts+out918.ts+out919.ts+out920.ts+out921.ts+out922.ts+out923.ts+out924.ts+out925.ts+out926.ts+out927.ts+out928.ts+out929.ts+out930.ts+out931.ts+out932.ts+out933.ts+out934.ts+out935.ts+out936.ts+out937.ts+out938.ts+out939.ts+out940.ts+out941.ts+out942.ts+out943.ts+out944.ts+out945.ts+out946.ts+out947.ts+out948.ts+out949.ts+out950.ts+out951.ts+out952.ts+out953.ts+out954.ts+out955.ts+out956.ts+out957.ts+out958.ts+out959.ts+out960.ts+out961.ts+out962.ts+out963.ts+out964.ts+out965.ts+out966.ts+out967.ts+out968.ts+out969.ts+out970.ts+out971.ts+out972.ts+out973.ts+out974.ts+out975.ts+out976.ts+out977.ts+out978.ts+out979.ts+out980.ts+out981.ts+out982.ts+out983.ts+out984.ts+out985.ts+out986.ts+out987.ts+out988.ts+out989.ts+out990.ts+out991.ts+out992.ts+out993.ts+out994.ts+out995.ts+out996.ts+out997.ts+out998.ts+out999.ts+out1000.ts+out1001.ts+out1002.ts+out1003.ts+out1004.ts+out1005.ts+out1006.ts+out1007.ts+out1008.ts+out1009.ts+out1010.ts+out1011.ts+out1012.ts+out1013.ts+out1014.ts+out1015.ts+out1016.ts+out1017.ts+out1018.ts+out1019.ts+out1020.ts+out1021.ts+out1022.ts+out1023.ts+out1024.ts+out1025.ts+out1026.ts+out1027.ts+out1028.ts+out1029.ts+out1030.ts+out1031.ts+out1032.ts+out1033.ts+out1034.ts+out1035.ts+out1036.ts+out1037.ts+out1038.ts+out1039.ts+out1040.ts+out1041.ts+out1042.ts+out1043.ts+out1044.ts+out1045.ts+out1046.ts+out1047.ts+out1048.ts+out1049.ts+out1050.ts+out1051.ts+out1052.ts+out1053.ts+out1054.ts+out1055.ts+out1056.ts+out1057.ts+out1058.ts+out1059.ts+out1060.ts+out1061.ts+out1062.ts+out1063.ts+out1064.ts+out1065.ts+out1066.ts+out1067.ts+out1068.ts+out1069.ts+out1070.ts+out1071.ts+out1072.ts+out1073.ts+out1074.ts+out1075.ts+out1076.ts+out1077.ts+out1078.ts+out1079.ts+out1080.ts+out1081.ts+out1082.ts+out1083.ts+out1084.ts+out1085.ts+out1086.ts+out1087.ts+out1088.ts+out1089.ts+out1090.ts+out1091.ts+out1092.ts+out1093.ts+out1094.ts+out1095.ts+out1096.ts+out1097.ts+out1098.ts+out1099.ts+out1100.ts+out1101.ts+out1102.ts+out1103.ts+out1104.ts+out1105.ts+out1106.ts+out1107.ts+out1108.ts+out1109.ts+out1110.ts+out1111.ts+out1112.ts+out1113.ts+out1114.ts+out1115.ts+out1116.ts+out1117.ts+out1118.ts+out1119.ts+out1120.ts+out1121.ts+out1122.ts+out1123.ts+out1124.ts+out1125.ts+out1126.ts+out1127.ts+out1128.ts+out1129.ts+out1130.ts+out1131.ts+out1132.ts+out1133.ts+out1134.ts+out1135.ts+out1136.ts+out1137.ts+out1138.ts+out1139.ts+out1140.ts+out1141.ts+out1142.ts+out1143.ts+out1144.ts+out1145.ts+out1146.ts+out1147.ts+out1148.ts+out1149.ts+out1150.ts+out1151.ts+out1152.ts+out1153.ts+out1154.ts+out1155.ts+out1156.ts+out1157.ts+out1158.ts+out1159.ts+out1160.ts+out1161.ts+out1162.ts+out1163.ts+out1164.ts+out1165.ts+out1166.ts+out1167.ts+out1168.ts+out1169.ts+out1170.ts+out1171.ts+out1172.ts+out1173.ts+out1174.ts+out1175.ts+out1176.ts+out1177.ts+out1178.ts+out1179.ts+out1180.ts+out1181.ts+out1182.ts+out1183.ts+out1184.ts+out1185.ts+out1186.ts+out1187.ts+out1188.ts+out1189.ts+out1190.ts+out1191.ts+out1192.ts+out1193.ts+out1194.ts+out1195.ts+out1196.ts+out1197.ts+out1198.ts+out1199.ts+out1200.ts+out1201.ts+out1202.ts+out1203.ts+out1204.ts+out1205.ts+out1206.ts+out1207.ts+out1208.ts+out1209.ts+out1210.ts+out1211.ts+out1212.ts+out1213.ts+out1214.ts+out1215.ts+out1216.ts+out1217.ts+out1218.ts+out1219.ts+out1220.ts+out1221.ts+out1222.ts+out1223.ts+out1224.ts+out1225.ts+out1226.ts+out1227.ts+out1228.ts+out1229.ts+out1230.ts+out1231.ts+out1232.ts+out1233.ts+out1234.ts+out1235.ts+out1236.ts+out1237.ts+out1238.ts+out1239.ts+out1240.ts+out1241.ts+out1242.ts+out1243.ts+out1244.ts+out1245.ts+out1246.ts+out1247.ts+out1248.ts+out1249.ts+out1250.ts+out1251.ts+out1252.ts+out1253.ts+out1254.ts+out1255.ts+out1256.ts+out1257.ts+out1258.ts+out1259.ts+out1260.ts+out1261.ts+out1262.ts+out1263.ts+out1264.ts+out1265.ts+out1266.ts+out1267.ts+out1268.ts+out1269.ts+out1270.ts+out1271.ts+out1272.ts+out1273.ts+out1274.ts+out1275.ts+out1276.ts+out1277.ts+out1278.ts+out1279.ts+out1280.ts+out1281.ts+out1282.ts+out1283.ts+out1284.ts+out1285.ts+out1286.ts+out1287.ts+out1288.ts+out1289.ts+out1290.ts+out1291.ts+out1292.ts+out1293.ts+out1294.ts+out1295.ts+out1296.ts+out1297.ts+out1298.ts+out1299.ts+out1300.ts+out1301.ts+out1302.ts+out1303.ts+out1304.ts+out1305.ts+out1306.ts+out1307.ts+out1308.ts+out1309.ts+out1310.ts+out1311.ts+out1312.ts+out1313.ts+out1314.ts+out1315.ts+out1316.ts+out1317.ts+out1318.ts+out1319.ts+out1320.ts+out1321.ts+out1322.ts+out1323.ts+out1324.ts+out1325.ts+out1326.ts+out1327.ts+out1328.ts+out1329.ts+out1330.ts+out1331.ts+out1332.ts+out1333.ts+out1334.ts+out1335.ts+out1336.ts+out1337.ts+out1338.ts+out1339.ts+out1340.ts+out1341.ts+out1342.ts+out1343.ts+out1344.ts+out1345.ts+out1346.ts+out1347.ts+out1348.ts+out1349.ts+out1350.ts+out1351.ts+out1352.ts+out1353.ts+out1354.ts+out1355.ts+out1356.ts+out1357.ts+out1358.ts+out1359.ts+out1360.ts+out1361.ts+out1362.ts+out1363.ts+out1364.ts+out1365.ts+out1366.ts+out1367.ts+out1368.ts+out1369.ts+out1370.ts+out1371.ts+out1372.ts+out1373.ts+out1374.ts+out1375.ts+out1376.ts+out1377.ts+out1378.ts+out1379.ts+out1380.ts+out1381.ts+out1382.ts+out1383.ts+out1384.ts+out1385.ts+out1386.ts+out1387.ts+out1388.ts+out1389.ts+out1390.ts+out1391.ts+out1392.ts+out1393.ts+out1394.ts+out1395.ts+out1396.ts+out1397.ts+out1398.ts+out1399.ts+out1400.ts+out1401.ts+out1402.ts+out1403.ts+out1404.ts+out1405.ts+out1406.ts+out1407.ts+out1408.ts+out1409.ts+out1410.ts+out1411.ts+out1412.ts+out1413.ts+out1414.ts+out1415.ts+out1416.ts+out1417.ts+out1418.ts+out1419.ts+out1420.ts+out1421.ts+out1422.ts+out1423.ts+out1424.ts+out1425.ts+out1426.ts+out1427.ts+out1428.ts+out1429.ts+out1430.ts+out1431.ts+out1432.ts+out1433.ts+out1434.ts+out1435.ts+out1436.ts+out1437.ts+out1438.ts+out1439.ts+out1440.ts+out1441.ts+out1442.ts+out1443.ts+out1444.ts+out1445.ts+out1446.ts+out1447.ts+out1448.ts+out1449.ts new.ts
转载自原文链接, 如需删除请联系管理员。
原文链接:权力的游戏 第八季 最后一集下载,转载请注明来源!