Developing iOS 11 Apps with Swift 視頻下載

Developing iOS 11 Apps with Swift 視頻下載

從 Mac 版的 iTunes 裏找到課程,通過分享鏈接,獲取下面的地址, 其實就是一個 xml 文件

iTunes podcasts 視頻解析地址

解析出所有的下載地址

import xml.etree.ElementTree as ET
import requests
root = ET.fromstring(requests.get('http://podcasts.apple.com/stanford/developing_ios11_apps.xml').text)
for enclosure in root.findall('.//enclosure'):
    print(enclosure.get('url'))

解析結果

視頻下載地址(視頻裏內置了英文字幕,要播放器支持才能看到。也可以用字幕提取工具CCExtractor提取字幕)

PDF 課件下載地址

中文字幕

網上找到的中文字幕

https://github.com/ApolloZhu/Developing-iOS-11-Apps-with-Swift

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章