Skip to main content

Agent-native CLI for Jike (即刻) — interact with web.okjike.com from the terminal

Project description

cli-web-jike

CLI for Jike (即刻) — a Chinese social networking platform.

Installation

pip install -e jike/agent-harness

For browser-based authentication:

pip install -e "jike/agent-harness[auth]"
playwright install chromium

Quick Start

# Authenticate (opens browser for SMS/WeChat login)
cli-web-jike auth login

# Your following feed
cli-web-jike feed following

# Create a post
cli-web-jike posts create "Hello Jike"

# Create a post with an image
cli-web-jike posts create "Check this out" --image ~/photo.png

# All commands support --json output
cli-web-jike --json feed following --limit 5

Commands

auth

Command Description
auth login Open browser for SMS/WeChat login
auth status [--json] Check authentication state
auth logout Remove saved credentials

feed

Command Description
feed following [--limit N] [--load-more-key K] Your following feed
feed explore [--limit N] [--load-more-key K] Explore/discover feed

posts

Command Description
posts get <id> Get a post by ID
posts create <content> [--topic-id ID] [--image PATH] Create a post, optionally with an image
posts suggest <draft> Get topic suggestions for a draft

users

Command Description
users profile [username] Get your own or another user's profile
users following <username> [--limit N] List who a user follows
users followers <username> [--limit N] List a user's followers

topics

Command Description
topics get <id> Get topic/圈子 details
topics feed <id> [--limit N] Get posts from a topic

notifications

Command Description
notifications list [--limit N] List notifications
notifications unread Unread notification count

search

Command Description
search suggestions <keyword> [--limit N] Search autocomplete (topics, users, keywords)

comments

Command Description
comments list <post_id> [--limit N] List primary comments on a post

Auth

JWT token stored at ~/.config/cli-web-jike/auth.json (chmod 600). For CI/CD, set the CLI_WEB_JIKE_AUTH_JSON environment variable with a JSON {"token": "..."} value.

Token expiration: tokens are short-lived. Run auth login to refresh via browser.

REPL Mode

Run cli-web-jike without arguments to enter interactive REPL mode with:

  • Command history
  • Auto-completion
  • Branded banner
cli-web-jike
> feed following --limit 3
> users profile
> exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_web_jike-0.1.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_web_jike-0.1.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file cli_web_jike-0.1.0.tar.gz.

File metadata

  • Download URL: cli_web_jike-0.1.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cli_web_jike-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3793b438f3a69a599921eb6a9ec8cf903296adaa0692bdc0f381e4b849815596
MD5 f2993d7745d1cfb1bceda88dfd6d2bb0
BLAKE2b-256 e9605e787c72a581d6133bc057b8551d26804506c5647c2f66629783c861399a

See more details on using hashes here.

File details

Details for the file cli_web_jike-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cli_web_jike-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cli_web_jike-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da272318968cc6463e464d2e9d76c351b788a99ef6021c604a7b55b7537227b0
MD5 393041cc8150c14a02a89759bf6a490b
BLAKE2b-256 36c3eacceb9f741218c7cb27325e65a85c9fb242f1ea620eabaa8d4823ad761c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page