Loading...
Loading...
Read and publish 专栏 articles on Bilibili (bilibili.com) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats, inspect one article, and publish a new article. Use when the user mentions Bilibili / B站 / 专栏, "我的B站专栏", reading article stats (阅读/点赞), or publishing/投稿 a 专栏 article.
npx skill4agent add acedatacloud/skills bilibiliapi.bilibili.comurllibhashlibBILIBILI_COOKIESSESSDATAbili_jctscripts/bilibili.pyBILI=$SKILL_DIR/scripts/bilibili.py
python3 $BILI whoami # who is logged in (mid, name)
python3 $BILI articles --limit 20 # my 专栏 articles + stats
python3 $BILI article <cvid> # one article's stats (cv id)
python3 $BILI drafts --limit 50 # list saved drafts (aid + title)viewlikereplyfavoritecoinpython3 $BILI whoami
# → {"mid": 91207595, "name": "...", "level": 4}--confirmpublish--confirm--confirmpython3 $BILI publish --title "标题" --content-file a.html # dry-run
python3 $BILI publish --title "标题" --content-file a.html --draft-only --confirm # save a draft
python3 $BILI publish --title "标题" --content-file a.html --confirm # save draft + submit (publish)--draft-only--draft-onlycode 37106 草稿数已达最大上限python3 $BILI drafts --limit 50 # list (aid + title)
python3 $BILI delete-draft <aid> <aid2> ... # dry-run (shows what would delete)
python3 $BILI delete-draft <aid> <aid2> ... --confirm # PERMANENTLY delete those draftsdelete-draft--confirm--confirmpublish<img src>i0.hdslb.comarticle.biliimg.com37130--no-rehost-imagestid-17tidBILIBILI_COOKIESpublish_artifactpublish_artifact(kind="article", channel="bilibili", title="<title>", url="<the REAL returned URL>", status="delivered")status="failed"_shared/artifacts.md