Coder Social home page Coder Social logo

youguang-zhou / bilibili-dl Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 2.0 44 KB

Bilibili-dl 是一个下载 B 站音视频的工具(目前视频下载最高只支持720P)

Home Page: https://pypi.org/project/bilibili-dl

License: Other

Python 100.00%
bilibili

bilibili-dl's Introduction

Bilibili-dl

1. 简介

Bilibili-dl 是一个下载 B 站音视频的工具(目前视频下载最高只支持 720P)。

2. 安装

pip install bilibili-dl

3. 使用

所需依赖:ffmpeg

bilibili-dl [-h] [-v]
            [bv]
            [--mid [MID]]
            [--audio-only | -a]

positional arguments:
  bv                BV号

options:
  -h, --help        show this help message and exit
  -v, --version     查看版本号
  --mid [MID]       space.bilibili.com/{mid}
  --audio-only, -a  仅下载音频 (默认: False)
  • 通过 BV 号下载单个视频:
bilibili-dl [bvid]
  • 通过 mid 下载该 up 主的所有投稿视频:
bilibili-dl [--mid MID]

如仅需要音频则在以上命令后面加 --audio-only-a 即可。

4. 感谢

感谢以下项目提供的支持:

5. License

Creative Commons Attribution-NonCommercial 4.0 International

bilibili-dl's People

Contributors

youguang-zhou avatar

Stargazers

 avatar HCLonely avatar  avatar Junchen Lu avatar  avatar Dongjie Yang avatar xwchris avatar  avatar  avatar Jory Zhou avatar Zheng Qin avatar  avatar  avatar  avatar Hang avatar Eason avatar dlwlrma avatar  avatar

Watchers

 avatar

Forkers

bitsf xwchris

bilibili-dl's Issues

invalid argument

          Traceback (most recent call last):

File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\aboo\AppData\Local\Programs\Python\Python312\Scripts\bilibili-dl.exe_main
.py", line 7, in
File "C:\Users\aboo\AppData\Local\Programs\Python\Python312\Lib\site-packages\bilibili_dl\cli.py", line 5, in run_cli
main(get_args())
File "C:\Users\aboo\AppData\Local\Programs\Python\Python312\Lib\site-packages\bilibili_dl\main.py", line 47, in main
download(videos, is_audio_only)
File "C:\Users\aboo\AppData\Local\Programs\Python\Python312\Lib\site-packages\bilibili_dl\downloader.py", line 52, in download
urllib.request.urlretrieve(download_url, raw_fname, show_progress)
File "C:\Users\aboo\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 250, in urlretrieve
tfp = open(filename, 'wb')
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: '1. What Does Schoolteachers and Sumo Wrestlers Have in Common?.raw.mp3'

Originally posted by @gongqiong in #1 (comment)

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.