littledivy/mimic
Intercept any app, then call it from Python like a library
项目说明
mimic
Intercept any app, then call it from Python like a library.
from hinge_client import Hinge
acc = Hinge() # reuses your captured session
recs = acc.get_recommendations()
acc.like(subject_id, comment="hi lol")
You don't write hinge_client.py. mimic captures your own app traffic and an AI
generates the client from it.
How it works
Most apps authenticate every request with the same bundle of values: a bearer token, some device ids, a session id, cookies. They're stable across calls. Capture them once from a real request you made, and you can replay them on new requests to the same API.
capture traffic -> extract auth -> generate client
(mitmproxy) (mimic.Session) (claude reads the
captured endpoints)
The generated client is plain Python on top of mimic.App, and you edit it like
any other file. It gives you named methods, body templates, and the multi-step
call chaining mobile APIs tend to need (fetch a token in one call, spend it in
the next).
Install
sh install.sh
Installs uv if you don't have it, then mimic in an
isolated tool env. mitmproxy isn't a separate install; mimic launches it via
uvx on first record. (Manual: uv tool install mimic-client.)
mimic doctor
