Skip to content

Instantly share code, notes, and snippets.

Avatar

Enrique Medina Montenegro emedina

View GitHub Profile
@alex-slynko
alex-slynko / kubecon_curl.sh
Last active Dec 15, 2018 — forked from hobbsh/kubecon_curl.sh
Download CF Boston summit presentations from Sched
View kubecon_curl.sh
#!/bin/bash
mkdir kubecon
DAYS=("2018-12-11" "2018-12-13" "2018-12-12")
for DAY in "${DAYS[@]}"; do
#Super shitty pipefest because of grep matched groups sadness
LINKS=($(curl https://kccna18.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' '))
for LINK in "${LINKS[@]}"; do
echo "Requesting https://kccna18.sched.com${LINK}"
#Find file link on event page