I’ve found tools like Charles really useful for understanding what’s happening on the wire. When I need something more repeatable (tests, offline work), I usually reach for a mock server instead. I ended up building a small one for my own use and later open-sourced it:
Great article. In addition, updating your mocking code can often be time-consuming. To try to make this easier, I built mock[1], which streamlines the process of setting up mock services for testing.
It's also possible create an HTTP service that acts as a wrapper to yt-dlp with just a few lines of shell, I created this example in the following link:
https://dhuan.github.io/mock/latest/examples.html
^Command line utility that lets you build APIs with just one command.
https://github.com/dhuan/dop
^JSON/YAML manipulation with AWK style approach.
reply