Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Last active December 20, 2023 15:36
Show Gist options
  • Save trapd00r/d105e26d7b56d2d278fa3ca3c0b78684 to your computer and use it in GitHub Desktop.
Save trapd00r/d105e26d7b56d2d278fa3ca3c0b78684 to your computer and use it in GitHub Desktop.
rippa från aftonbladet
wget $(curl 'https://abtvlive-lh.akamaized.net/hls/live/2032323/ab/mjFTw7xx212olIaJ6Wv1A/master7000.m3u8' --compressed -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Origin: https://www.aftonbladet.se' -H 'Connection: keep-alive' -H 'Referer: https://www.aftonbladet.se/' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'DNT: 1' -H 'Sec-GPC: 1' -H 'TE: trailers' \
| perl -pe 's{^master7000/(.+)$}{https://abtvlive-lh.akamaized.net/hls/live/2032323/ab/mjFTw7xx212olIaJ6Wv1A/master7000/$1}' \
| grep '^http') \
&& ls *.ts|perl -pe 's/^/file /' > files.txt \
&& ffmpeg -f concat -i files.txt -c copy "Filip och Fredrik Svarar Sverige.ts" \
&& ffmpeg -i "Filip och Fredrik Svarar Sverige.ts" -acodec copy -vcodec copy "Filip och Fredrik Svarar Sverige".mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment