-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
3,305 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { BilibiliDataOptionsMapKeys } from '../../types/index.js'; | ||
declare class BiLiBiLiAPI { | ||
登录基本信息(): string; | ||
视频详细信息(data: BilibiliDataOptionsMapKeys['VideoInfoParams']): string; | ||
视频流信息(data: BilibiliDataOptionsMapKeys['VideoStreamParams']): string; | ||
/** type参数详见https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#评论区类型代码 */ | ||
评论区明细(data: BilibiliDataOptionsMapKeys['CommentParams']): string; | ||
表情列表(): string; | ||
番剧明细(data: BilibiliDataOptionsMapKeys['BangumiInfoParams']): string; | ||
番剧视频流信息(data: BilibiliDataOptionsMapKeys['BangumiStreamParams']): string; | ||
用户空间动态(data: BilibiliDataOptionsMapKeys['UserParams']): string; | ||
动态详情(data: BilibiliDataOptionsMapKeys['DynamicParams']): string; | ||
动态卡片信息(data: BilibiliDataOptionsMapKeys['DynamicParams']): string; | ||
用户名片信息(data: BilibiliDataOptionsMapKeys['UserParams']): string; | ||
直播间信息(data: BilibiliDataOptionsMapKeys['LiveRoomParams']): string; | ||
直播间初始化信息(data: BilibiliDataOptionsMapKeys['LiveRoomParams']): string; | ||
申请二维码(): string; | ||
二维码状态(data: BilibiliDataOptionsMapKeys['QrcodeParams']): string; | ||
} | ||
/** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */ | ||
declare const _default: BiLiBiLiAPI; | ||
export default _default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BilibiliDataType, BilibiliOptionsType, NetworksConfigType } from '../../types/index.js'; | ||
export default class BilibiliData { | ||
type: keyof typeof BilibiliDataType; | ||
headers: any; | ||
URL: string | undefined; | ||
constructor(type: keyof typeof BilibiliDataType, cookie: string | undefined); | ||
GetData(data?: BilibiliOptionsType): Promise<any>; | ||
GlobalGetData(options: NetworksConfigType): Promise<any>; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* return aweme_id | ||
* @param {string} url 分享连接 | ||
* @returns | ||
*/ | ||
export default function GetBilibiliID(url: string): Promise<any>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import BiLiBiLiAPI from './API.js'; | ||
import BilibiliData from './getdata.js'; | ||
import GetBilibiliID from './getid.js'; | ||
import qtparam from './qtparam.js'; | ||
import BilibiliResult from './result.js'; | ||
import wbi_sign from './sign/wbi.js'; | ||
export { av2bv, bv2av } from './sign/bv2av.js'; | ||
export { BiLiBiLiAPI, BilibiliData, BilibiliResult, GetBilibiliID, qtparam, wbi_sign }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function qtparam(BASEURL: string, cookie: string): Promise<{ | ||
QUERY: string; | ||
STATUS: string; | ||
isvip?: undefined; | ||
} | { | ||
QUERY: string; | ||
STATUS: string; | ||
isvip: true; | ||
} | { | ||
QUERY: string; | ||
STATUS: string; | ||
isvip: false; | ||
}>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BilibiliDataType, BilibiliOptionsType, GetDataResponseType } from '../../types/index.js'; | ||
interface configParams { | ||
/** 请求数据的类型 */ | ||
type: keyof typeof BilibiliDataType; | ||
/** B站用户ck */ | ||
cookie: string | undefined; | ||
} | ||
/** | ||
* | ||
* @param options | ||
* @param config | ||
* @returns | ||
*/ | ||
export default function BilibiliResult(config?: configParams, options?: BilibiliOptionsType): Promise<GetDataResponseType | any>; | ||
export {}; |
Oops, something went wrong.