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.1.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.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_web_jike-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 02db22e55ec39d8fcbb73de21b5a999b5b3620985581c8cf2857dbe2c5bba953
MD5 7ed8e8dd1fd5335f2b4beffaf31d772e
BLAKE2b-256 636875201bfeb0893c3f1ee0ed316b29995ad1288613290395e0cdab2e969049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_web_jike-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6ed1cd74435c2d61c65304bdb02e539247b57aa82584f38a1f5f3a865df438
MD5 73387b5850761f48eeedd16e309b1b11
BLAKE2b-256 4a9ac46f714f5c68f9bc59d0f0cfac14fbd557f1774c290820e506c609815d11

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