{"id":22071408,"url":"https://github.com/libsgh/tieba-api","last_synced_at":"2026-03-09T13:01:45.580Z","repository":{"id":33842816,"uuid":"129363709","full_name":"libsgh/tieba-api","owner":"libsgh","description":"简单封装了百度贴吧的基本操作，登录，签到，回帖等","archived":false,"fork":false,"pushed_at":"2024-01-19T01:37:23.000Z","size":271,"stargazers_count":104,"open_issues_count":10,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-07T22:46:45.569Z","etag":null,"topics":[],"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/libsgh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-13T07:12:43.000Z","updated_at":"2026-03-02T13:09:36.000Z","dependencies_parsed_at":"2024-11-30T20:31:34.812Z","dependency_job_id":"a2fda6e5-f1ed-40d4-b93f-40df14a18720","html_url":"https://github.com/libsgh/tieba-api","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/libsgh/tieba-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsgh%2Ftieba-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsgh%2Ftieba-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsgh%2Ftieba-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsgh%2Ftieba-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsgh","download_url":"https://codeload.github.com/libsgh/tieba-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsgh%2Ftieba-api/sbom","scorecard":{"id":588306,"data":{"date":"2025-08-11","repo":{"name":"github.com/libsgh/tieba-api","commit":"b25f004c182a3fc7b4bde9efabf3e293066c6734"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.9 not signed: https://api.github.com/repos/libsgh/tieba-api/releases/29161008","Warn: release artifact v1.0.8 not signed: https://api.github.com/repos/libsgh/tieba-api/releases/24284085","Warn: release artifact v1.0.7 not signed: https://api.github.com/repos/libsgh/tieba-api/releases/17696999","Warn: release artifact v1.0.6 not signed: https://api.github.com/repos/libsgh/tieba-api/releases/17268771","Warn: release artifact v1.0.5 not signed: https://api.github.com/repos/libsgh/tieba-api/releases/16865468","Warn: release artifact v1.0.9 does not have provenance: https://api.github.com/repos/libsgh/tieba-api/releases/29161008","Warn: release artifact v1.0.8 does not have provenance: https://api.github.com/repos/libsgh/tieba-api/releases/24284085","Warn: release artifact v1.0.7 does not have provenance: https://api.github.com/repos/libsgh/tieba-api/releases/17696999","Warn: release artifact v1.0.6 does not have provenance: https://api.github.com/repos/libsgh/tieba-api/releases/17268771","Warn: release artifact v1.0.5 does not have provenance: https://api.github.com/repos/libsgh/tieba-api/releases/16865468"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-47vx-fqr5-j2gw","Warn: Project is vulnerable to: GHSA-7m7h-rgvp-3v4r","Warn: Project is vulnerable to: GHSA-7mcw-xmx3-7p8m","Warn: Project is vulnerable to: GHSA-7p8c-crfr-q93p","Warn: Project is vulnerable to: GHSA-p2qf-9vp6-3jjq","Warn: Project is vulnerable to: GHSA-rr66-qh5m-w6mx","Warn: Project is vulnerable to: GHSA-rxgf-r843-g53h","Warn: Project is vulnerable to: GHSA-p7w9-8mxw-p3g7","Warn: Project is vulnerable to: GHSA-pv7h-hx5h-mgfj","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj","Warn: Project is vulnerable to: GHSA-7rjr-3q55-vv33","Warn: Project is vulnerable to: GHSA-8489-44mv-ggj8","Warn: Project is vulnerable to: GHSA-jfh8-c2jp-5v3q","Warn: Project is vulnerable to: GHSA-p6xc-xr62-6r2g","Warn: Project is vulnerable to: GHSA-gp7f-rwcx-9369","Warn: Project is vulnerable to: GHSA-m72m-mhq2-9p6c"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T21:09:03.681Z","repository_id":33842816,"created_at":"2025-08-20T21:09:03.681Z","updated_at":"2025-08-20T21:09:03.681Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-30T20:31:25.030Z","updated_at":"2026-03-09T13:01:45.351Z","avatar_url":"https://github.com/libsgh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tieba-api\n[![language](https://img.shields.io/badge/language-java-blue.svg)](https://www.java.com)\n[![version](https://img.shields.io/badge/version-v1.0.9-orange.svg)](https://mvnrepository.com/artifact/com.github.libsgh/tieba-api/1.0.9)\n[![GitHub license](https://img.shields.io/github/license/libsgh/tieba-api.svg)](https://github.com/libsgh/tieba-api/blob/master/LICENSE)\n\n\n封装了百度贴吧的基本操作，登录，签到，回帖等\n## 使用说明\nmaven\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.libsgh\u003c/groupId\u003e\n    \u003cartifactId\u003etieba-api\u003c/artifactId\u003e\n    \u003cversion\u003e${lastVersion}\u003c/version\u003e\n\u003c/dependency\u003e\n```\nGradle\n```\nimplementation 'com.github.libsgh:tieba-api:${lastVersion}'\n```\nSBT\n```\nlibraryDependencies += \"com.github.libsgh\" % \"tieba-api\" % \"${lastVersion}\"\n```\n直接引用jar,在[tieba-api](http://mvnrepository.com/artifact/com.github.libsgh/tieba-api/)或[releases](https://github.com/libsgh/tieba-api/releases)下载最新版\n```\n TieBaApi api = TieBaApi.getInstance();\n api.uploadPicture(new File(\"\"), bduss, api.getImgTbs(), \"fid\", false, WatermarkType.NO_WATERMARK);//上传图片，返回图片id（用于回帖）\n api.reply(bduss, \"5635882244\", \"bug\", \"#bug吧#回帖接口测试\", 0);//回帖\n api.getIndexTList(\"bug\",1);//获取首页帖子数组\n api.oneBtnToSign(bduss, stoken);//一键签到\n api.oneBtnToSign(bduss);//一键签到\n api.signOneTieBa(\"姜敏京\", 282280, bduss);//签到一个贴吧\n api.getHideTbs(username);//获取用户所有贴吧(隐藏贴吧)\n api.getMyLikedTB(bduss, stoken);//获取我喜欢的贴吧\n api.getUserInfo(bduss, stoken);//获取用户信息\n api.getHeadImg(username);//获取用户头像\n api.zhiDaoSign(bduss);//知道签到\n api.wenKuSign(bduss);//文库签到\n api.getMsg(bduss, \"reply\", 1);//查看回复我或艾特我的信息\n api.replyFloor(bduss, \"tid\", \"pid\", \"fname\", \"···\", 0);//楼中楼回复\n List\u003cReplyInfo\u003e list = api.getMsg(bduss, \"reply\", 1);\n for (ReplyInfo replyInfo : list) {\n\tapi.floorpid(bduss, replyInfo.getThread_id(), replyInfo.getPost_id());//获取楼层pid\n }\n //用户名密码登录获取cookie\n api.getBaiDuLoginCookie(account, password, verifyCode, codeString, cookies, token);\n api.focus(bduss, \"bug\");//关注一个贴吧\n api.unfocus(bduss, \"bug\");//取消关注一个贴吧\n api.getQRCodeUrl();//获取登录二维码\n api.getFollowList(bduss);//获取关注的用户列表\n api.getFansList(bduss);//获取粉丝列表\n api.removeFans(bduss,fans_uid);//移除粉丝\n api.islogin(bduss);//检测bduss有效性\n api.getCookieFromQRCode(v);//二维码登录获取cookie(bduss,stoken)\n api.jubao(bduss, \"123649521597\",\"10004\");//举报帖子\n api.isFocus(\"bug\", bduss, stoken);//是否关注某个贴吧\n api.isFocus(\"bug\", bduss);//是否关注某个贴吧\n //api.getFullNameByPanUrl(\"panUrl\");//接口失效\n api.support(bduss, \"柯南\");//助攻名人堂\n api.prisionReasonList(bduss, \"home\", \"uid\");//获取封禁原因列表\n api.commitprison(bduss, \"home\", \"张三\", 1 ,\"reason\");//封禁用户\n api.focus2(bduss, stoken, api.getFid(\"bug\"));//关注贴吧（网页接口，可以关注异常吧）\n api.unfocus2(bduss, stoken, api.getFid(\"bug\"));//取关贴吧（网页接口，可以取关异常吧）\n api.getFid(\"bug\");//获取贴吧fid\n api.qrCodeLoginStatus(\"sign\", \"gid\");//检查扫码登录状态查询\n api.addThread(bduss, \"tbName\", \"\", \"c\");//上传图片\n```\n\n温馨提示：\n\n1. **回帖接口可能导致全吧封禁，请谨慎使用**\n2. **登录接口许久未更新，目前只做参考，主流方式是扫码登录获取cookie**\n\n使用推荐：基于api实现的微信公众号：ponbous，[web站点](https://sign.noki.top)\n\n有问题提issue或q：359916450\n\n## Credits\n\nThanks for [DartNode](https://dartnode.com) that sponsors this project with its free VPS for open-source developers!\n\u003ch1\u003e\u003cp align=\"center\"\u003e\u003cimg src=\"https://app.dartnode.com/assets/dash/images/brand/logo.png\" alt=\"DartNode\" height=\"292\"\u003e\u003c/p\u003e\u003c/h1\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsgh%2Ftieba-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsgh%2Ftieba-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsgh%2Ftieba-api/lists"}