26 lines
763 B
Plaintext
26 lines
763 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
mv ~/.cache/media.ccc.list ~/.cache/media.ccc.list.1
|
||
|
|
||
|
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[] | select(.high_quality == true and .folder == "webm-hd").recording_url' \
|
||
|
>> ~/.cache/media.ccc.list
|
||
|
done
|
||
|
done
|