Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download videos from infoq
#! /bin/bash
# Author: Shirish Padalkar (https://twitter.com/_Garbage_)
if [ "$#" -ne 1 ]; then
echo "Usage: $0 infoq_presentation_url"
exit 1
fi
url_with_spaces=`curl -A "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" $1 | grep "<source src=" | tr -dc "[:print:]"`
url=${url_with_spaces//<source src=/}
echo "You can download this video from ${url// \/>/}"
@majidazimi

This comment has been minimized.

Copy link

majidazimi commented Aug 27, 2013

awesome ...

@frankgerhardt

This comment has been minimized.

Copy link

frankgerhardt commented May 24, 2014

thanks

@myguidingstar-zz

This comment has been minimized.

Copy link

myguidingstar-zz commented Jun 2, 2014

This is another script that downloads slides too with offline view capability http://github.com/myguidingstar/infoq-downloader
(but requires PhantomJs or SlimerJs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.