Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8e3640

Browse files
Update README.md
1 parent 5e6c223 commit b8e3640

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎bilibili/README.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Description
22

3-
Given a video aid/av_number, the script will return all corresponding danmaku in that video.
3+
Given a video aid/av_number, the script will return all corresponding danmaku in that video.
44
给定视频av号,脚本将返回对应视频中的所有弹幕。
55

66
# How to use
@@ -40,6 +40,7 @@ get_danmaku <- function(avid){
4040

4141
Then run the function:
4242

43+
video link: https://www.bilibili.com/video/av789232
4344
```r
4445
#for example
4546
my_danmaku <- get_danmaku(789232)
@@ -52,3 +53,9 @@ first ten rows of results:
5253
[1] "曾經的歌曲如今也100萬歲了" "是我年齡的數萬倍" "不知不覺間我也迎來五周歲生日" "你比我自己還要瞭解我呢" "愛也好戀也罷我也好你也好"
5354
[6] "喜歡也好討厭也好它們全部" "是謊言也好真實也好" "我都還能唱很多歌哦" "此刻 一直以來的感謝" "往後日子里的感謝"
5455
```
56+
57+
# Notes
58+
59+
Some special danmaku(danmaku that has colors or centered, etc.) are returned in a different format.
60+
e.g. `"var c = $.createComment(\"不知何时我迎来了 五周年的诞生日\",\n{fontsize:25,lifeTime:7,y:340,x:7,color:0x66ccff,motion:{ }}); \nc.font=\"微软雅黑\";c.filters=[$.createGlowFilter(0xff00ff,0.7,16,16,2,1,false,false)];\n" `.
61+
You need to pay attention to this and extract the text by yourself.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /