medium — read & publish on Medium via your own cookies
Drives the user's real Medium account through the same internal web API the
site uses (Medium retired its public write API in 2023), authenticated by the
login cookie they captured with the ACE extension. No browser, no third-party
deps — just urllib.
The connector injects the cookie jar as an env var:
MEDIUM_COOKIES— a JSON array of cookies (sid,uid,xsrf). **Secret —
never echo or print it.** The CLI echoes the xsrf cookie as the
x-xsrf-token header on writes for you. If the captured jar has no xsrf
cookie (common), the CLI mints one automatically before writing, so publishes
no longer fail with "Missing xsrf token".
Image downloads honor standard HTTP_PROXY / HTTPS_PROXY and NO_PROXY.
A configured proxy must enforce public destinations when resolving hostnames;
without one, the script performs its existing local DNS checks.