libwaifu / BilibiliLink

Mozilla Public License 2.0
17 stars 4 forks source link

函数::PhotosMethods #7

Closed oovm closed 6 years ago

oovm commented 6 years ago

PhotosMethods

AlbumObject

TraceObject

Data

oovm commented 6 years ago

PhotosRange

PhotosRange :: Integer -> [Integer]
PhotosRange :: (Integer, Integer) ->[Integer]
PhotosRange :: [Integer] -> BilibiliAlbumObject

PhotosRange 给出某一范围内的画作的详细信息. PhotosRange 接受一个列表, 当输入是整数时会自动转换为列表.

oovm commented 6 years ago

PhotosHot

PhotosHot :: Integer -> BilibiliAlbumObject
PhotosHot :: String  -> BilibiliAlbumObject -- 已废弃

PhotosHot 给出 https://h.bilibili.com/eden/draw_area#/all/hot 页面的详细数据. PhotosHot 接受类别名, 或者类别的数字映射, 返回 Album 对象 其中, 数字映射由下表 $KeyMap 给出.

PhotosNew

PhotosNew :: Integer -> BilibiliAlbumObject
PhotosNew :: String  -> BilibiliAlbumObject -- 已废弃

PhotosNew 给出 https://h.bilibili.com/eden/picture_area#/cos/new 页面的详细数据. PhotosNew 接受类别名, 或者类别的数字映射, 返回 Album 对象 其中, 数字映射由下表 $KeyMap 给出.

KeyMap

$KeyMap=<|
    1-><|"Name"->"插画","Key"->"illustration","Url"->"https://h.bilibili.com/eden/draw_area#/illustration"|>,
    2-><|"Name"->"漫画","Key"->"comic","Url"->"https://h.bilibili.com/eden/draw_area#/comic"|>,
    3-><|"Name"->"其他画作","Key"->"draw","Url"->"https://h.bilibili.com/eden/draw_area#/other"|>,
    4-><|"Name"->"全部画作","Key"->"alld","Url"->"https://h.bilibili.com/eden/draw_area#/all"|>,
    5-><|"Name"->"Cosplay","Key"->"cos","Url"->"https://h.bilibili.com/eden/picture_area#/cos"|>,
    6-><|"Name"->"其他摄影","Key"->"sifu","Url"->"https://h.bilibili.com/eden/picture_area#/sifu"|>,
    7-><|"Name"->"全部摄影","Key"->"allp","Url"->"https://h.bilibili.com/eden/picture_area#/all"|>
|>;
oovm commented 6 years ago

PhotosIndex

PhotosIndex :: BilibiliAlbumObject
oovm commented 6 years ago

PhotosAuthor

PhotosAuthor :: Integer -> BilibiliAlbumObject

PhotosAuthor 接受用户ID, Album 对象 PhotosAuthor 给出 https://space.bilibili.com/259333/#/album 页面下的所有图册.

oovm commented 6 years ago

PhotosRank

PhotosRank :: Integer -> BilibiliAlbumObject
PhotosRank :: String  -> BilibiliAlbumObject -- 已废弃

PhotosRank 给出 https://h.bilibili.com/common/rank#/photo 排行榜下的所有作品. PhotosRank 接受类别名, 或者类别的数字映射, 返回 Album 对象 其中, 数字映射由下表 $KeyMap 给出.

KeyMap

$PhotoKeyMap=<|
    8-><|"Name"->"日榜/新人榜","Alias"->"DayLeader","Key"->"day","Url"->"https://h.bilibili.com/common/rank#/photo"|>,
    9-><|"Name"->"周榜","Alias"->"WeekLeader","Key"->"week","Url"->"https://h.bilibili.com/common/rank#/photo"|>,
    10-><|"Name"->"月榜","Alias"->"MonthLeader","Key"->"month","Url"->"https://h.bilibili.com/common/rank#/photo"|>
|>;