Skip to content

Instantly share code, notes, and snippets.

View unknownking2002's full-sized avatar

unknownking unknownking2002

View GitHub Profile
@unknownking2002
unknownking2002 / Record_M3U8.sh
Created February 22, 2026 17:46 — forked from jayeshkv/Record_M3U8.sh
A small bash script to make ffmpeg recording HLS streams (m3u8).
#!/bin/bash
for i in {1..168} # week
do
echo "ITERATION $i"
seconds=3600 #hour
# Date format for the recording file name
@unknownking2002
unknownking2002 / download.py
Created November 5, 2024 10:23 — forked from Spix0r/download.py
A Python script for fetching and decrypting M3U8 playlists from a secured streaming site. It automates extracting embed codes, handling cookies and referers, downloading key and .ts files, and modifying the playlist to use local resources. Ideal for decrypting and organizing streaming content for offline playback.
import requests
import re
import base64
import json
# Step 1: Fetch main page HTML from a user-provided link.
page_content = requests.get(input("Enter URL: ")).text
# Step 2: Extract the 'embed_code' from the page.
embed_code = re.search(r'<script src="https://example.com/(.*)/embed', page_content).group(1)