【笔记】B站视频<CrashCourse 速成课>下载方法

最近在b站(众所周知,这是个学习网站。。。)看《计算机速成课》,讲的是真不错,还在学习中。。。

然而在下方推荐中发现速成课是个系列,于是在网上搜索中文官网,发现了这个:CrashCourse中文字幕组https://crashcourse.club/category/需要科学上网)。在这个网页中点击视频,会自动跳转到b站中,但是都是分散的,有点麻烦。。。

正好前段时间接触了you-get这个神器,今天就说说怎么通过这个神器下载视频。。。

先上代码:

you-get --format=dash-flv720 -o d:\ -I d:\list.txt

d:\list.txt文件内容如下:

https://www.bilibili.com/video/av13816246
https://www.bilibili.com/video/av13970948
https://www.bilibili.com/video/av14078059
https://www.bilibili.com/video/av14659498
https://www.bilibili.com/video/av15656353
https://www.bilibili.com/video/av15767468
https://www.bilibili.com/video/av16121660
https://www.bilibili.com/video/av16174463
https://www.bilibili.com/video/av16306439
https://www.bilibili.com/video/av16548011
https://www.bilibili.com/video/av16688297

 一、首先,你得先安装python:https://www.python.org/downloads/,当然安装的时候要勾选环境变量设置

二、然后,安装you-get:

pip3 install you-get

三、其次,安装ffmpeg.exe,我是把这个文件直接放到you-get目录下,省得设置环境变量了。

四、测试,win+r,cmd,窗口中输入

you-get -h 

 如果显示帮助文档,说明安装成功

usage: you-get [OPTION]... URL...

A tiny downloader that scrapes the web

optional arguments:
  -V, --version         Print version and exit
  -h, --help            Print this help message and exit

Dry-run options:
  (no actual downloading)
  -i, --info            Print extracted information

Download options:
  -O FILE, --output-filename FILE
                        Set output filename
  -o DIR, --output-dir DIR
                        Set output directory
  -I FILE, --input-file FILE
                        Read non-playlist URLs from FILE

五、接下来在cmd窗口中输入

you-get -i [URL]   

rem [URL]替换成上面list中任意网址测试

如:you-get -i https://www.bilibili.com/video/av13816246

反馈如下:

site:                Bilibili
title:               【10分钟速成课:学习技能】预告片
streams:             # Available quality and codecs
    [ DASH ] ____________________________________
    - format:        dash-flv720
      container:     mp4
      quality:       高清 720P
      size:          10.7 MiB (11186548 bytes)
    # download-with: you-get --format=dash-flv720 [URL]

    - format:        dash-flv480
      container:     mp4
      quality:       清晰 480P
      size:          10.6 MiB (11161484 bytes)
    # download-with: you-get --format=dash-flv480 [URL]

    - format:        dash-flv360
      container:     mp4
      quality:       流畅 360P
      size:          5.0 MiB (5225491 bytes)
    # download-with: you-get --format=dash-flv360 [URL]

    [ DEFAULT ] _________________________________
    - format:        flv720
      container:     flv
      quality:       高清 720P
      size:          10.7 MiB (11254693 bytes)
    # download-with: you-get --format=flv720 [URL]

    - format:        flv480
      container:     flv
      quality:       清晰 480P
      size:          10.7 MiB (11229629 bytes)
    # download-with: you-get --format=flv480 [URL]

    - format:        flv360
      container:     flv
      quality:       流畅 360P
      size:          5.7 MiB (6026522 bytes)
    # download-with: you-get --format=flv360 [URL]

如果我选择  高清720P mp4 ,那么命令为:

you-get --format=dash-flv720 [URL]

六、最后,根据上面的说明文档,可以构建命令:

you-get --format=dash-flv720 -o d:\ -I d:\list.txt

rem  -o  下载的存储位置
rem  -I  有下载链接的文件

七、最最后,说下网页链接怎么获取,进入https://crashcourse.club/category/后,选择喜欢的课程进去,然后在网页空白处右键“查看网页源代码”,这里可以找到b站的网址。

--

以上

2020-10-12 锦采

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Java Crash Course - The Complete Beginner's Course to Learn Java Programming in 21 Clear-Cut Lessons Paperback – December 20, 2016 Are you bored of the traditional methods people tell you to use to learn programming languages? Are you bored of all those boring programming books that pile up making everything look so hard? What if we told you there's a better, more enjoyable way to learn Java programming language and grow your knowledge exponentially? Well, guess what? There is! The best way to learn Java is by following a set of step by step, clear cut, uncomplicated lessons The problem? You might feel like you don't know where to start, or you may feel lost trying to read whatever pops up on the internet. And that’s exactly why we created this book. Quick Lessons + Dozens of Practical Exercises = Faster Learning We know how difficult it may seem to learn a programming language from scratch, let alone trying to put all that learning into practice. But what you might not realize is that it's fairly easy to fully incorporate the essentials of Java programming once you frame that learning into a certain context (for example, practical exercises). The aim is to achieve all the necessary skills to learn how to actually implement Java. This e-book will guide you through the process, allowing you to expand your skills in Java more quickly than usual, making sense of ideas, understanding new concepts, and getting a better grasp of the essentials of Java programming in a relatively short period of time. Our straightforward lessons work because they eliminate the stress of forcing yourself to overcome the complexity most books present. Instead, when you go through our 21 lessons, you will learn Java without even realizing you’re learning it! Your goal is to simply focus on a lesson at a time (they only a take few minutes to read). The lessons start right from the beginning, covering the basics of Java and building up from there. We wanted these lessons to be fun, interestin

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值