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

uv pip install -e .

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.0.tar.gz (45.1 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.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bmarxs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b4e6d994b67c3e1f01da14ea3559cc5ee24c8331b7e3f8d7459fe5fa80108e6
MD5 d1a661d95a429a9390256fa88a85a6c2
BLAKE2b-256 df5c0d506261cbb698274aa83e5fd60c9848a95ee680fd7fb30f97f3675e2d7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bmarxs-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7eecf6585ae566e1ca41f66902ee8c980658951c79fed448241915cf805d508
MD5 93076ef8c83de1d7d324031347d35003
BLAKE2b-256 779e9a86420257db1aeb8817f289a1c59cd7d5dce25b2a3a4127816b42ab99b9

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