Created
March 18, 2012 03:27
-
-
Save ftao/2068455 to your computer and use it in GitHub Desktop.
download pycon2012 videos
This file contains 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
#!/bin/sh | |
wget https://github.com/rg3/youtube-dl/zipball/master -O youtube-dl.zip | |
unzip youtube-dl.zip | |
cd rg3-youtube-dl-ceba827/ | |
python youtube-dl --batch-file ../pycon2012_video_urls.txt |
This file contains 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
''' | |
You may need to run | |
pip install BeautifulSoup | |
before run this script | |
''' | |
import urllib2 | |
import urlparse | |
import re | |
from BeautifulSoup import BeautifulSoup | |
url = 'http://pyvideo.org/category/17/pycon-us-2012' | |
dom = BeautifulSoup(urllib2.urlopen(url)) | |
hrefs = [urlparse.urljoin(url, link['href']) for link in dom.findAll('a', href=re.compile('^/video/\d+/'))] | |
hrefs = sorted(list(set(hrefs))) | |
for link in hrefs: | |
dom = BeautifulSoup(urllib2.urlopen(link)) | |
link = dom.find('a', href=re.compile('^https://www\.youtube\.com')) | |
print link['href'] | |
This file contains 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
https://www.youtube.com/watch?v=hp5ymCrD9yw | |
https://www.youtube.com/watch?v=2G5YTlheCbw | |
https://www.youtube.com/watch?v=NBSosX8xiRk | |
https://www.youtube.com/watch?v=Bs6-sai1fKE | |
https://www.youtube.com/watch?v=bobeo5kFz1g | |
https://www.youtube.com/watch?v=52wxGESwQSA | |
https://www.youtube.com/watch?v=t_ziKY1ayCo | |
https://www.youtube.com/watch?v=w26x-z-BdWQ | |
https://www.youtube.com/watch?v=oZw8m_lyhvo | |
https://www.youtube.com/watch?v=Pi9NpxAvYSs | |
https://www.youtube.com/watch?v=Iw9-GckD-gQ | |
https://www.youtube.com/watch?v=duc3jYgAaR0 | |
https://www.youtube.com/watch?v=L-fXOoxrt0M | |
https://www.youtube.com/watch?v=P7SVi0YTIuE | |
https://www.youtube.com/watch?v=ULdDuwf48kM | |
https://www.youtube.com/watch?v=qgGqaBAEy3Q | |
https://www.youtube.com/watch?v=xHqlzuPq_qQ | |
https://www.youtube.com/watch?v=sdkAXM36C7M | |
https://www.youtube.com/watch?v=Zd5dfooZWG4 | |
https://www.youtube.com/watch?v=g0CankXpFZg | |
https://www.youtube.com/watch?v=yflKOoAohEk | |
https://www.youtube.com/watch?v=KUpIFhNW89A | |
https://www.youtube.com/watch?v=R9ITLdmfdLI | |
https://www.youtube.com/watch?v=Mv3xgBQJPaE | |
https://www.youtube.com/watch?v=hyzPYaAmVOc | |
https://www.youtube.com/watch?v=Xu5EhKVZdV8 | |
https://www.youtube.com/watch?v=-Mx1JVTFOBY | |
https://www.youtube.com/watch?v=RAxiiRPHS9k | |
https://www.youtube.com/watch?v=G-lGCC4KKok | |
https://www.youtube.com/watch?v=jOu0D9ttCFI | |
https://www.youtube.com/watch?v=1VZfL9JVgFg | |
https://www.youtube.com/watch?v=XGF3Qu4dUqk | |
https://www.youtube.com/watch?v=__s45TTXxps | |
https://www.youtube.com/watch?v=vfYul2E56fo | |
https://www.youtube.com/watch?v=JOXwclgvXB0 | |
https://www.youtube.com/watch?v=9G6-GksU7Ko | |
https://www.youtube.com/watch?v=26wgEsg9Mcc | |
https://www.youtube.com/watch?v=jXlR0Icvvh8 | |
https://www.youtube.com/watch?v=tYk4_Nzl-Gg | |
https://www.youtube.com/watch?v=188mXjwdkak | |
https://www.youtube.com/watch?v=vfPtGsSJldg | |
https://www.youtube.com/watch?v=9LVqBQcFmyw | |
https://www.youtube.com/watch?v=hvPYuqzTPIk | |
https://www.youtube.com/watch?v=OBbvj0WWT-g | |
https://www.youtube.com/watch?v=n6145JSeqWc | |
https://www.youtube.com/watch?v=3dMq_3UUPxg | |
https://www.youtube.com/watch?v=AZDWveIdqjY | |
https://www.youtube.com/watch?v=9q8LTZSvpr8 | |
https://www.youtube.com/watch?v=YyEReiAYGlU | |
https://www.youtube.com/watch?v=TmuEDxX1FDQ | |
https://www.youtube.com/watch?v=tYW52SLy_w0 | |
https://www.youtube.com/watch?v=QGfxLXoMpPk | |
https://www.youtube.com/watch?v=YdnBK5yO4zU | |
https://www.youtube.com/watch?v=H841U6RhrDU | |
https://www.youtube.com/watch?v=6wZoBbE-rOo | |
https://www.youtube.com/watch?v=l_HBRhcgeuQ | |
https://www.youtube.com/watch?v=54XwSUC8klI | |
https://www.youtube.com/watch?v=P5ad6NpjR3M | |
https://www.youtube.com/watch?v=NIcijUt-HlE | |
https://www.youtube.com/watch?v=wslWYg0CTkY | |
https://www.youtube.com/watch?v=399c-ycBvo4 | |
https://www.youtube.com/watch?v=E09qigk_hnY | |
https://www.youtube.com/watch?v=1CjX385y3e4 | |
https://www.youtube.com/watch?v=y_cXzaymXm0 | |
https://www.youtube.com/watch?v=b7R3-_ViNxk | |
https://www.youtube.com/watch?v=BoMQqW0lxVE | |
https://www.youtube.com/watch?v=hnhN2_TpY8g | |
https://www.youtube.com/watch?v=kdZuUIj4lMo | |
https://www.youtube.com/watch?v=RBOScqRGHZA | |
https://www.youtube.com/watch?v=Zv26xHYlc8s | |
https://www.youtube.com/watch?v=QPgqfnKG_T4 | |
https://www.youtube.com/watch?v=Ycvg0PCQ-sM | |
https://www.youtube.com/watch?v=GxyfYEe8MiQ | |
https://www.youtube.com/watch?v=bTXert2uRco | |
https://www.youtube.com/watch?v=bwwf_HbEJQM | |
https://www.youtube.com/watch?v=fekA2mRGTTE | |
https://www.youtube.com/watch?v=qmgh14LUOjQ | |
https://www.youtube.com/watch?v=fWONoZvTi80 | |
https://www.youtube.com/watch?v=nhr-YErfW8k | |
https://www.youtube.com/watch?v=NkUTLRZBWLM | |
https://www.youtube.com/watch?v=C9K8DOe1zWw | |
https://www.youtube.com/watch?v=z1RQMm37Xmw | |
https://www.youtube.com/watch?v=3UHE-zD1r_M | |
https://www.youtube.com/watch?v=WZoeqnsY9AY | |
https://www.youtube.com/watch?v=dX3DRdFKW_E | |
https://www.youtube.com/watch?v=nvkCqFLtcJI | |
https://www.youtube.com/watch?v=N4zdWLuSbV0 | |
https://www.youtube.com/watch?v=AeQxx4zXd5Q | |
https://www.youtube.com/watch?v=9XlPKEessD8 | |
https://www.youtube.com/watch?v=WMUXMqYhQ-M | |
https://www.youtube.com/watch?v=CFt6QrzavH0 | |
https://www.youtube.com/watch?v=FCiA6e44aOI | |
https://www.youtube.com/watch?v=qbYYamU42Sw | |
https://www.youtube.com/watch?v=ahM4GBZ-6qg | |
https://www.youtube.com/watch?v=Wh9a0obtQUQ | |
https://www.youtube.com/watch?v=ickNQcNXiS4 | |
https://www.youtube.com/watch?v=uUEwEMMCZhE | |
https://www.youtube.com/watch?v=O8WXXtDUUOE | |
https://www.youtube.com/watch?v=ktLyuWoRHH8 | |
https://www.youtube.com/watch?v=Bt2HStzaBzE | |
https://www.youtube.com/watch?v=gpKMwPoldak | |
https://www.youtube.com/watch?v=67l4czkKsz8 | |
https://www.youtube.com/watch?v=tKTW8Jd0BlQ | |
https://www.youtube.com/watch?v=NUQMr5R3dlk | |
https://www.youtube.com/watch?v=tCUdeLIj4hE | |
https://www.youtube.com/watch?v=dJJDndQrsSw | |
https://www.youtube.com/watch?v=KOfB5WQb39g | |
https://www.youtube.com/watch?v=YHXX3KuB23Q | |
https://www.youtube.com/watch?v=lJL2asANiyM | |
https://www.youtube.com/watch?v=euh9ZQi339o | |
https://www.youtube.com/watch?v=M5IPlMe83yI | |
https://www.youtube.com/watch?v=cY7pE7vX6MU | |
https://www.youtube.com/watch?v=Wk8zAr0R9zQ | |
https://www.youtube.com/watch?v=twQKAoq2OPE | |
https://www.youtube.com/watch?v=2gha47uSk5c | |
https://www.youtube.com/watch?v=QrITN6GZDu4 | |
https://www.youtube.com/watch?v=3BYN3ouwkRA | |
https://www.youtube.com/watch?v=5YQrFiWa50M | |
https://www.youtube.com/watch?v=Qh4Gkkgi1Mw | |
https://www.youtube.com/watch?v=Hx6VxszpvsY | |
https://www.youtube.com/watch?v=AMMBYLB3qd0 | |
https://www.youtube.com/watch?v=VuFW0PkNS74 | |
https://www.youtube.com/watch?v=_CPNLY_Gf7s | |
https://www.youtube.com/watch?v=5jRLjGWWaHs | |
https://www.youtube.com/watch?v=v7HH_CNIdXc | |
https://www.youtube.com/watch?v=ziz2lh-14i8 | |
https://www.youtube.com/watch?v=dhUo_lpD7v0 | |
https://www.youtube.com/watch?v=qLXllxd4Z1c | |
https://www.youtube.com/watch?v=3FcAcE3Zq2Q | |
https://www.youtube.com/watch?v=U1Y5Uxn2Rcw | |
https://www.youtube.com/watch?v=x-JDra36m38 | |
https://www.youtube.com/watch?v=Me9SZohibPQ | |
https://www.youtube.com/watch?v=KUOoStyV7Zs | |
https://www.youtube.com/watch?v=4bWC_VXffq4 | |
https://www.youtube.com/watch?v=A3Qe5wUbXzM | |
https://www.youtube.com/watch?v=Rmg4-Ae1P1o | |
https://www.youtube.com/watch?v=OceCWIqZt7I | |
https://www.youtube.com/watch?v=fVpvd7OX6PQ | |
https://www.youtube.com/watch?v=ZwBiQEHS4T8 | |
https://www.youtube.com/watch?v=MIAKOMzRl1I | |
https://www.youtube.com/watch?v=q_i3CHNITQ4 | |
https://www.youtube.com/watch?v=Thd8yoBou7k | |
https://www.youtube.com/watch?v=ANhTacigaf8 | |
https://www.youtube.com/watch?v=bGWytn-Ff9E | |
https://www.youtube.com/watch?v=miGolgp9xq8 | |
https://www.youtube.com/watch?v=o9pEzgHorH0 | |
https://www.youtube.com/watch?v=4-TwdBuTR1A | |
https://www.youtube.com/watch?v=cSbD5SKwak0 | |
https://www.youtube.com/watch?v=Adr_QuDZxuM | |
https://www.youtube.com/watch?v=Xk6gQ6s2QjU | |
https://www.youtube.com/watch?v=LddeJ06JoXE | |
https://www.youtube.com/watch?v=SULKL7TMRsU | |
https://www.youtube.com/watch?v=47NSfuuuMfs | |
https://www.youtube.com/watch?v=LnVkLXRIbIg | |
https://www.youtube.com/watch?v=qTwvObrRGdY | |
https://www.youtube.com/watch?v=sgHbC6udIqc | |
https://www.youtube.com/watch?v=VMIj6eB9baY | |
https://www.youtube.com/watch?v=EBRMq2Ioxsc | |
https://www.youtube.com/watch?v=Q0Q9K93bK-4 | |
https://www.youtube.com/watch?v=vP6j7VDpPrI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment