Loading...
Loading...
Read and publish on 掘金 / Juejin (juejin.cn) 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 掘金 / Juejin, "我的掘金文章", reading their article stats (阅读/点赞), or publishing/发文 to 掘金.
npx skill4agent add acedatacloud/skills juejinapi.juejin.cnurllibJUEJIN_COOKIESscripts/juejin.pyJJ=$SKILL_DIR/scripts/juejin.py
python3 $JJ whoami # who is logged in (+ totals)
python3 $JJ articles --limit 20 # my published articles + stats
python3 $JJ article <article-id> # one article's statsview_countdigg_countcomment_countcollect_countaudit_statuspython3 $JJ whoami
# → {"user_id": "...", "name": "...", "post_article_count": 336}err_no--confirmpublish--confirm--confirmpython3 $JJ publish --title "标题" --content-file a.md # dry-run
python3 $JJ publish --title "标题" --content-file a.md --draft-only --confirm # private draft
python3 $JJ publish --title "标题" --content-file a.md \
--category-id 6809637769959178254 --tag-ids 6809640407484334093 --confirm # PUBLIC--draft-onlyarticle_draft--category-id--tag-id--draft-only--draft-only--draft-onlyJUEJIN_COOKIESpublish_artifactpublish_artifact(kind="article", channel="juejin", title="<title>", url="<the REAL returned URL>", status="delivered")status="failed"_shared/artifacts.md