Skip to content

Instantly share code, notes, and snippets.

@stewartpark
Created February 7, 2016 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stewartpark/852579dcae3c5541d0c6 to your computer and use it in GitHub Desktop.
Save stewartpark/852579dcae3c5541d0c6 to your computer and use it in GitHub Desktop.
from pyquery import PyQuery as pq
import requests
open('./video.mp4', 'wb').write(requests.get(pq(url=pq(url='http://dogvideos.tumblr.com/post/93519938318/videohall-how-dogs-react-to-human-barking')('iframe').attr('src'))('video source').attr('src')).content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment