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
hjuj91
V2EX  ›  Python

Blob url 有办法爬下来么

  •  1
     
  •   hjuj91 · 2018-01-06 23:33:22 +08:00 · 5395 次点击
    这是一个创建于 2273 天前的主题,其中的信息可能已经有所发展或是发生改变。

    向 b 站这种 https://www.bilibili.com/video/av17939763/?spm_id_from=333.334.chief_recommend.17 video 标签全部是 blob url,看了下接口都是需要签名的,只有看懂混淆的 js 然后找签名算法来爬视频这一种办法吗???

    2 条回复    2018-01-07 13:16:47 +08:00
    ysc3839
        1
    ysc3839  
       2018-01-07 00:02:44 +08:00 via Android
    最好先去了解一下什么是 Blob。这是 JS 代码返回的数据的。像 B 站是因为使用了 flv.js ,作用是把 flv 重新封装成 mp4 格式,让浏览器播放。
    duan602728596
        2
    duan602728596  
       2018-01-07 13:16:47 +08:00 via iPhone
    接口确实需要签名.......如果想要自动化的话就扒算法吧……半自动就是 f12 查看签名。我有段代码就是先 f12 看签名后,使用 fetch 下载视频,然后在网页上生成 blob 链接的方式来下载的。而且视频是分段的,还需要用软件来合并
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1585 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.