This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os , requests | |
| Host = "http://xxx.xxx.xxx.xxx" | |
| Headers={ | |
| "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0", | |
| "Referer":f"{Host}/srun_portal_pc?ac_id=1&theme=basic&srun_domain=" | |
| } | |
| def detect_ip()->str: | |
| r = requests.get(f"{Host}",headers=Headers).text | |
| return r.split('name="user_ip"')[1].split('">')[0].split('value="')[-1] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os , shutil | |
| # step1: Make Structure Tree | |
| files = [] | |
| def make_structure_tree(path): | |
| for i in os.listdir(path): | |
| if os.path.isdir(path+"/"+i): | |
| make_structure_tree(path+"/"+i) | |
| else: files.append(path+"/"+i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":2,"global":{},"rooms":[]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "BV1Ka411k7rM": [ | |
| { | |
| "Sourcer": "knaifen", | |
| "Url": "https://asoul.knaifen.workers.dev/ASOUL-REC-二周年/2021.12.11 【A-SOUL】周年特别直播.mp4", | |
| "Offset": 4.0 | |
| }, | |
| { | |
| "Sourcer": "knaifen", | |
| "Url": "https://asoul.knaifen.workers.dev/ASOUL-REC-二周年/2021.12.11 【A-SOUL】周年特别直播.mp4", |