Giter Site home page Giter Site logo

视频在B站可以正常观看,获取URL后下载的文件是一个空的mp4文件,无法正常打开 about bilibili-api-collect HOT 4 CLOSED

victorxys avatar victorxys commented on September 24, 2024
视频在B站可以正常观看,获取URL后下载的文件是一个空的mp4文件,无法正常打开

from bilibili-api-collect.

Comments (4)

ag2s20150909 avatar ag2s20150909 commented on September 24, 2024

播放地址要添加referer

from bilibili-api-collect.

victorxys avatar victorxys commented on September 24, 2024

播放地址要添加referer

哦哦,好的,我试一下看看

from bilibili-api-collect.

victorxys avatar victorxys commented on September 24, 2024

播放地址要添加referer

检查了一下代码,原本的headers里面是带有UA和Refer的,看来不是这个问题导致的,如果是refer鉴权的话,应该会返回403。

from bilibili-api-collect.

victorxys avatar victorxys commented on September 24, 2024

找到原因了,没有登录的问题,不登录无法下载720P以上的视频。登录后再下载就可以了

from bilibili-api-collect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.