Skip to content

Instantly share code, notes, and snippets.

View shede333's full-sized avatar

shede333 shede333

View GitHub Profile
@shede333
shede333 / extract.py
Created February 22, 2014 12:05
借鉴了 https://gist.github.com/qiaoxueshi/5976402 这里的代码;\n 修改为下载 wwdc 所有pdf 的代码 使用方法: 1. 必须在safari浏览器 打开 https://developer.apple.com/wwdc/videos/ , 接着使用 apple开发账户登陆进去,一定要登录才行。 2. 登录成功之后,将页面保存为html格式,文件名为wwdc_video.html, 3.创建文件 extract.py ,将本代码复制进去。 3. 将extract.py 和 wwdc_video.html放在同一目录下,然后在此目录下执行以下语句:(shell一定要切换到这个目录下执行) python extract.py < ~/wwdc…
#_*_ coding:UTF-8 _*_
__author__ = 'shaowei'
import requests
import os
import re
print "\nAll files will be downloaded here:", os.getcwd()
re_video_HD = re.compile(r'<a href="(http://devstreaming.apple.com/videos/wwdc/2013/[^"]*-HD\.mov)')