This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Download KubeCon + CloudNativeCon Europe 2018 presentations from Sched | |
# Forked https://gist.github.com/hobbsh/35091c54970fff0b86a64cd72f02e8e3 | |
DAYS=("2018-04-30" "2018-05-01" "2018-05-02" "2018-05-03" "2018-05-04") | |
for DAY in "${DAYS[@]}"; do | |
mkdir -p "kccnceu18/${DAY}" | |
LINKS=($(curl -s https://kccnceu18.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' ')) | |
for LINK in "${LINKS[@]}"; do |