Skip to content

ATP v0.2.0

Choose a tag to compare

@WindustH WindustH released this 18 Oct 03:59
· 74 commits to main since this release

Changes

  • Edit published posts: atp <platform> edit POST [TEXT] now takes --title, --topic/--tag, --no-topics, --cover and --visibility where the platform allows them. It shows an old → new summary and asks first; pass -y in scripts.
    • Douyin works (title, text, topics, cover, visibility).
    • Bilibili videos and dynamics; Zhihu answers and pins; Weibo (text and visibility); Jike (text, topic, visibility); Juejin articles.
    • YouTube videos through the Data API (title, description, tags, thumbnail, privacy); Facebook Page posts; X (within edit_control); Reddit; Mastodon; Lemmy (title and text); Discourse (posts, plus a topic's title, tags and category); Instagram captions; Misskey notes on Sharkey and CherryPick.
  • Manage follows and favorites with the same commands everywhere:
    • Favorites folders: folder-create, folder-edit, folder-delete, folder-add, folder-remove, folder-move.
    • Following: following --sort recent|oldest|smart|visited, --search, --mutual; follow/unfollow take several users; remove-follower; block, unblock, blocked.
    • Follow groups: follow-groups, follow-group, follow-group-create|rename|delete|add|remove (Bilibili and Weibo groups; lists on X, Bluesky and Mastodon).
    • like, unlike, favorite, unfavorite take several posts.
    • Watch later: watch-later, later-add, later-remove, later-clear [--watched]. History: history-delete, history-clear.
    • Most complete on Bilibili, Douyin and Xiaohongshu; also Weibo, Zhihu, Juejin, Jike, Tieba, Kuaishou, Douban, YouTube, X, Reddit, Instagram, TikTok, Bluesky and Mastodon, as far as each platform allows.
  • Use ATP as a Rust library: add it as a git dependency with one feature per platform (default-features = false, features = ["zhihu"]); atp::open loads a saved session and every command is a typed method. See the README.
  • Lemmy save uses PUT, as the API expects.

Upgrading

  • Bilibili: groups, group, group-* are now follow-groups, follow-group, follow-group-*; group-assign is follow-group-add/follow-group-remove; blacklist is blocked.
  • YouTube: playlist-* are now folder-* (plus playlist-privacy and playlist-move); history-remove is history-delete. Run atp youtube oauth once more before editing videos (the new scope is needed).
  • X: lists are managed with follow-group* (new lists are private by default); folder-rename is folder-edit --name.
  • Weibo: the groups and folders extras moved to follow-groups and the folder-* commands.
  • history-delete now asks before deleting; pass -y in scripts.
  • Install from the AUR (all-the-platforms-bin) or Homebrew (brew install windusth/tap/atp).