Created
February 25, 2024 16:27
-
-
Save rpwnage/d115a15e59e512cc59bff796f3f25eec to your computer and use it in GitHub Desktop.
extract the m3u8 from voe.sx
This file contains 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 json, re, base64, requests | |
VOE_SX_URL = "some voe.sx url" | |
streamRequest = requests.get(VOE_SX_URL) | |
secret = re.search("let f62aad852c654bf8c9737da67c45630c7dec5019 = '(.*)';", streamReq.text).group(1) | |
secretDecoded = json.loads(re.search("'(.*)'b", (str(base64.b64decode(secret))[::-1])).group(1).replace("\\", "")) | |
# secretDecoded["file"] is the m3u8 file used in the stream, yay! | |
print(secretDecoded) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment