dotfiles/.bin/OLD/media-ccc-list-update.1
2024-02-14 07:55:58 +01:00

28 lines
730 B
Bash
Executable File

#!/bin/sh
rm -f ~/.cache/media.ccc.list
curl -s \
-H "CONTENT-TYPE: application/json" \
https://media.ccc.de/public/conferences \
| jq -rc '.[][].url' \
| while read conference
do
echo "+ Scraping ${conference##*/}"
curl -s \
-H "CONTENT-TYPE: application/json" \
"$conference" \
| jq -rc '.events[].url' \
| while read event
do
echo "| Event: ${event##*/}"
curl -s \
-H "CONTENT-TYPE: application/json" \
"$event" \
| jq -rc '.recordings[].recording_url' \
| fgrep '/webm-hd/' \
>> ~/.cache/media.ccc.list
done
done