Skip to content

Instantly share code, notes, and snippets.

View emedina's full-sized avatar

Enrique Medina Montenegro emedina

View GitHub Profile
@alex-slynko
alex-slynko / kubecon_curl.sh
Last active December 15, 2018 17:44 — forked from hobbsh/kubecon_curl.sh
Download CF Boston summit presentations from Sched
#!/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