推荐学习书目
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 · Jan 6, 2018 · 6447 views
    This topic created in 3080 days ago, the information mentioned may be changed or developed.

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

    2 replies    2018-01-07 13:16:47 +08:00
    ysc3839
        1
    ysc3839  
       Jan 7, 2018 via Android
    最好先去了解一下什么是 Blob。这是 JS 代码返回的数据的。像 B 站是因为使用了 flv.js ,作用是把 flv 重新封装成 mp4 格式,让浏览器播放。
    duan602728596
        2
    duan602728596  
       Jan 7, 2018 via iPhone
    接口确实需要签名.......如果想要自动化的话就扒算法吧……半自动就是 f12 查看签名。我有段代码就是先 f12 看签名后,使用 fetch 下载视频,然后在网页上生成 blob 链接的方式来下载的。而且视频是分段的,还需要用软件来合并
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1040 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:02 · PVG 07:02 · LAX 16:02 · JFK 19:02
    ♥ Do have faith in what you're doing.