推荐学习书目
› 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 · Oct 15, 2016 · 3154 views
    This topic created in 3632 days ago, the information mentioned may be changed or developed.
    偶然在微博视频看的杰伦的精选集 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 replies  •  2017-03-04 22:20:49 +08:00
    mingyun
        2
    mingyun  
    OP
       Oct 15, 2016
    @cszhiyue 感谢,已下载成功,不过 python3 将 urlparse 改为 urllib.parse
    请问 api_url = 'http://api.miaopai.com/m/v2_channel.json' 这个接口哪获得的?
    hhxiaolei
        3
    hhxiaolei  
       Mar 4, 2017
    楼主,比如这个链接 http://www.miaopai.com/v2_index/u/paike_ghawyvmjs8 显示的 748 个视频 ,但是网页上的视频数量很少,我想把 748 个都下载回来,有什么方法吗?
    mingyun
        4
    mingyun  
    OP
       Mar 4, 2017
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2594 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:54 · PVG 22:54 · LAX 07:54 · JFK 10:54
    ♥ Do have faith in what you're doing.