bilibiliDownload: Download (a list of ) Bilibili videos by providing a url...

Description Usage Arguments Examples

View source: R/bilibiliDownload.R

Description

Bilibili API collection: https://www.bilibili.com/read/cv3430609/
The API to get AV ID by BV ID: https://api.bilibili.com/x/web-interface/view?bvid=BVID

Usage

1
2
3
4
5
6
7
8
9
bilibiliDownload(
  urlSeed = urlSeed,
  quality = c(p720p = 64, p360p = 16, p480p = 32, p1080p = 80)[1],
  path = "./bilibili_video/",
  removeSource = FALSE,
  sleepTime = 5,
  method,
  ...
)

Arguments

urlSeed

a url string.

quality

the quality of the video(s), 64 (default) is 720p, 16 is 360p, 32 is 480p, 80 is 1080p.

path

the path to save the list of videos.

removeSource

logic, whether to remove the source video after concatenate the source videos.

method

Method to be used for downloading files. Current download methods are "internal", "wininet" (Windows only) "libcurl", "wget" and "curl", and there is a value "auto". The method can also be set through the option "download.file.method": see options().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
## Not run: 
# Download a single video if there is "/?p=num" in the urlSeed.
urlSeed = "https://www.bilibili.com/video/BV1kb411x7KZ?p=1"
bilibiliDownload(urlSeed)

# Download a list of videos if there is no "/]?p=num" in the urlSeed.
urlSeed = "https://www.bilibili.com/video/BV1kb411x7KZ"
bilibiliDownload(urlSeed = urlSeed,
                 quality = 32,
                 path = "./小学二年级数学上册【杨老师54讲】",
                 removeSource = TRUE)


## End(Not run)
}

paodan/youtubeDownloader documentation built on Nov. 15, 2020, 9:48 p.m.