Loading...
Loading...
Read and publish on CSDN (blog.csdn.net) 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 CSDN, "我的 CSDN 文章", reading their article stats (阅读/点赞), or publishing/发文 to CSDN.
npx skill4agent add acedatacloud/skills csdnurllibhmacCSDN_COOKIESCSDN fronts its APIs with a WAF; the CLI already sends a full browser fingerprint so reads aren't 403'd. If you still get a WAF 403, the cookie expired — have the user reconnect.
scripts/csdn.pyCSDN=$SKILL_DIR/scripts/csdn.py
python3 $CSDN whoami # who is logged in (+ total article count)
python3 $CSDN articles --limit 20 # my published articles + stats
python3 $CSDN article <article-id> # one article's statsview_countdigg_countcomment_countcollect_countpython3 $CSDN whoami
# → {"username": "...", "nickname": "...", "articles_total": 1597}--confirmpublish--confirm--confirm--confirmpython3 $CSDN publish --title "标题" --content-file a.md # dry-run
python3 $CSDN publish --title "标题" --content-file a.md --draft-only --confirm # private draft (status=2)
python3 $CSDN publish --title "标题" --content-file a.md --tags "AI,Python" --confirm # PUBLIC, goes live--draft-onlystatus=2--draft-only--draft-only--tagspublishi-blog.csdnimg.cncsdnimg.cn--no-rehost-imagesCSDN_COOKIESpublish_artifactpublish_artifact(kind="article", channel="csdn", title="<title>", url="<the REAL returned URL>", status="delivered")status="failed"_shared/artifacts.md