{"id":25891495,"url":"https://github.com/lengpucheng/bilibiliclient","last_synced_at":"2025-03-02T20:28:27.471Z","repository":{"id":57715916,"uuid":"337071066","full_name":"lengpucheng/BilibiliClient","owner":"lengpucheng","description":"Bilibili Java API 接口包,在无需认证登录模式下获取哔哩哔哩相关信息","archived":false,"fork":false,"pushed_at":"2021-02-20T08:21:18.000Z","size":486,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-25T09:09:07.227Z","etag":null,"topics":["api-client","bilibili","client","httpclient","java","netty"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lengpucheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-08T12:37:42.000Z","updated_at":"2024-11-25T05:05:25.000Z","dependencies_parsed_at":"2022-09-12T08:41:41.845Z","dependency_job_id":null,"html_url":"https://github.com/lengpucheng/BilibiliClient","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengpucheng%2FBilibiliClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengpucheng%2FBilibiliClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengpucheng%2FBilibiliClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengpucheng%2FBilibiliClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lengpucheng","download_url":"https://codeload.github.com/lengpucheng/BilibiliClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241567006,"owners_count":19983412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","bilibili","client","httpclient","java","netty"],"created_at":"2025-03-02T20:28:26.452Z","updated_at":"2025-03-02T20:28:27.424Z","avatar_url":"https://github.com/lengpucheng.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eBilibiliClient\u003c/h1\u003e\n\nBilibiliClient —— 基于HttpClient 的 哔哩哔哩 API ,根据JSON反向完成的BiliBili Java 包 **将会持续更新**\n\n# 最近更新\n\n2021/2/20 添加对象公共方法 creatTime和updateTime 对时间进行转换\n\n# 使用方法\n\n（以目前版本为例 1.0.2)\n\n## 1、引入\n\n可以通过Jar 包下载的方式导入 (不推荐)\n\n推荐使用Maven或其他包管理工具引入(见MavenSearch)\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.hll520.linclient\u003c/groupId\u003e\n    \u003cartifactId\u003eBilibiliClient\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003cdependency\u003e\n```\n\n## 2、配置\n\n调用 `BaseClientConfig`的静态方法对相关属进行配置，目前支持如下配置\n\n```java\npublic class Config {\n    public static void main(String[] args) {\n        // 协议\n        BaseClientConfig.setProtocol(String protocol);\n        // 服务host\n        BaseClientConfig.setHost(String host);\n        // 服务host Vc\n        BaseClientConfig.setHostVc(String hostVc);\n        // 配置端口\n        BaseClientConfig.setPort(Integer port);\n        // 配置请求\n        BaseClientConfig.setRequestConfig(RequestConfig config);\n\n        // 配置仅对 之后 执行的请求有效 且会 更改 之后的全部全局配置\n    }\n}\n```\n\n## 3、使用\n\n```java\npublic class Test {\n    public static void main(String[] args) {\n        // 实例化应该 BiliClient 对象\n        BiliClient biliClient = BiliClientFactor.getClient();\n        // 调用 Client 对象的 相关条件方法\n        BiliCondition biliCondition = biliClient.video();\n        // 设置条件参数\n        BiliAbel\u003c?\u003e able = biliCondition.withBvid(\"BV1Ut4y1X7SS\");\n        // 获取 get 单个、list 多个   add delete update 暂不支持\n        Video video = able.get();\n\n        // 一般直接执行链式调用\n        DynamicItems list = biliClient.dynamic.withHostUid(392819792L).list();\n\n        // 其中 list 调用 可以传入 偏移或分页参数\n    }\n}\n```\n\n**其他使用方法请参考单元测试类**\n\n**使用参考文档: [IDEA JAVA使用BilibiliClient抓取哔哩哔哩用户动态等数据信息](https://blog.csdn.net/XiaoYunKuaiFei/article/details/113802710)**\n\n# 目前支持\n\n+ `Dynamic 动态` [动态文档](docs/动态dynamic/Dynamic.md)\n    + 根据动态ID获取动态数据\n    + 根据用户ID获取用户动态列表(目前支持普通动态、视频动态、转发动态)\n+ `User 用户相关` [用户文档](docs/用户user/User.md)\n    + 根据用户ID获取用户详情\n    + 获取当前登录用户信息\n+ `Relation 用户关系` [关系文档](docs/关系relation/Relation.md)\n    + 根据用户ID获取用户粉丝详情\n    + 根据用户ID获取用户关注详情\n+ `Video 视频相关` [视频文档](docs/视频video/Video.md)\n    + 根据AV获取视频信息\n    + 根据BV获取视频信息\n\n+ `DynamicTools` 包含一些静态方法**对动态进行分类和数据整理**\n\n# 参考鸣谢\n\n+ [`bilibili-API-collect` API对照参考](https://github.com/SocialSisterYi/bilibili-API-collect)\n+ [`yujincheng08` 提供的接口文档](https://github.com/yujincheng08)\n\n# 说明\n\n1. 本项目遵守MIT协议,基于本项目的任何开发请保留License\n2. **本项目仅用于学习目的！** 因使用本项目而导致的各种情况均与开发者无关\n3. 若因不可抗力或小破站要求,本项目可能随时中止或存档\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengpucheng%2Fbilibiliclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flengpucheng%2Fbilibiliclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengpucheng%2Fbilibiliclient/lists"}