littledivy/mimic ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool that lets me capture the network traffic from an app I use, then turn that captured session into a simple Python client I can call like a library.
I want a command line workflow where I can start recording, see what hosts were used, inspect the endpoints that were found, and generate a client file from them. It should support capturing from a phone through a proxy, but also let me paste in a cURL request or load a HAR file if that is easier. The generated client should feel like normal Python, with friendly method names instead of raw requests, and it should reuse the session info it captured so I do not have to manually copy tokens and headers.
If the auth expires, it should try to refresh and retry for safe requests. Make it easy to use on my own accounts, and keep the whole thing simple enough that I can edit the generated code afterward. If you need current docs for mitmproxy or related tools, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit