Skip to content

Instantly share code, notes, and snippets.

View Don42's full-sized avatar

Marco Kaulea Don42

  • Mannheim, Germany
View GitHub Profile
@nv1t
nv1t / slideshare-download.sh
Last active September 10, 2015 01:20
slideshare-download.sh
#!/bin/bash
URL="${1}"
TITLE=$(echo $URL | awk -F"/" '{ print $NF }' | awk -F"?" '{ print $1 }')
mkdir -p "${TITLE}"
cd "${TITLE}"
for i in $(curl "${URL}" 2> /dev/null | grep "slide_image" | tr '"' "\n" | grep -A 1 "data-full" | grep "image.slidesharecdn"); do