Skip to main content

CLI tool to export and manage X/Twitter bookmarks

Project description

bmarxs

CLI for exporting X/Twitter bookmarks. Designed for both human and agent use.

Install

pipx install bmarxs   # Recommended
# or
uv tool install bmarxs
# or
pip install bmarxs

Setup

# Import cookies from Chrome (must be logged into X, Chrome closed)
bmarxs import-cookies

Commands

bmarxs sync                    # Sync new bookmarks
bmarxs sync --all --enrich     # Sync all + fetch URL metadata
bmarxs list                    # List bookmarks (table)
bmarxs list --unprocessed      # List unprocessed only
bmarxs search "query"          # Full-text search
bmarxs export                  # Export to stdout (JSON)
bmarxs export --format csv     # Export as CSV
bmarxs stats                   # Show statistics
bmarxs mark-processed ID...    # Mark as processed
bmarxs mark-unprocessed ID...  # Mark as unprocessed
bmarxs enrich                  # Enrich URLs with metadata

Agent/Programmatic Use

Global Flags

Flag Description
--json / -j Output structured JSON
--quiet / -q Suppress progress messages

Examples

# Get stats as JSON
bmarxs --json stats

# Sync and get structured result
bmarxs --json sync

# List unprocessed bookmarks as JSON
bmarxs --json list --unprocessed

# Export to file
bmarxs export --format json > bookmarks.json

Exit Codes

Code Meaning
0 Success
1 General error
2 Auth error
3 Network error
4 Not found
5 Invalid input
6 Database error
7 Browser error

JSON Response Format

Success:

{"success": true, "synced_count": 5, "message": "Synced 5 new bookmarks"}

Error:

{"success": false, "error": {"code": 2, "code_name": "auth_error", "message": "Auth token not found"}}

Data

Stored in ./data/ by default (override with --data-dir):

  • bookmarks.db - SQLite database
  • session/state.json - Browser session

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

bmarxs-0.1.1.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

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

bmarxs-0.1.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bmarxs-0.1.1.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for bmarxs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c06ec15ead10a3b61357cdf647bb9e4d39434b19da9cdee519f123df19465f3e
MD5 3fce589331424c61e862e2c6cff6fc35
BLAKE2b-256 ac04615252af252d9f5adc5cfbfe26e23b696eec0df83b9ef943b5ba63fe077c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bmarxs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for bmarxs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67f3dea80120326a96e8554656fa35b7a784c1300b575ceb6664ae8ca3d98540
MD5 706c276f138e9c2a29f48c9aa826ed9b
BLAKE2b-256 dd77d9f780ec084c6f9b984bd377835fd8a3abd3e2fb4313908a1cbd3d8534ed

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