V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mingyun
V2EX  ›  Python

秒拍视频 swf 文件如何用 python 下载?

  •  
  •   mingyun · 2016-10-15 11:36:37 +08:00 · 2404 次点击
    这是一个创建于 2743 天前的主题,其中的信息可能已经有所发展或是发生改变。
    偶然在微博视频看的杰伦的精选集 http://weibo.com/tv/v/EcAmx4z11?from=music ,想下载下来,看到播放的是一个 swf 文件,地址为 http://wscdn.miaopai.com/splayer2.2.0.swf?scid=GcezAtC7sRC6~1S3GXxLkA__&token=&autopause=false&fromweibo=false 用 urllib.request.urlretrieve 直接下载不行,有什么办法?
    4 条回复    2017-03-04 22:20:49 +08:00
    mingyun
        2
    mingyun  
    OP
       2016-10-15 19:07:53 +08:00
    @cszhiyue 感谢,已下载成功,不过 python3 将 urlparse 改为 urllib.parse
    请问 api_url = 'http://api.miaopai.com/m/v2_channel.json' 这个接口哪获得的?
    hhxiaolei
        3
    hhxiaolei  
       2017-03-04 22:11:17 +08:00
    楼主,比如这个链接 http://www.miaopai.com/v2_index/u/paike_ghawyvmjs8 显示的 748 个视频 ,但是网页上的视频数量很少,我想把 748 个都下载回来,有什么方法吗?
    mingyun
        4
    mingyun  
    OP
       2017-03-04 22:20:49 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3225 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:47 · PVG 18:47 · LAX 03:47 · JFK 06:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.