cURL 命令转 Python/JS/Go 代码

从浏览器开发者工具或 API 文档里复制了 cURL 命令?粘贴到这里,立刻得到可直接运行的 Python、JavaScript、Go 或 PHP 代码——无需手动转换。

嵌入此工具到你的网站 / 博客 无需开发 · 复制即可使用
HTML 嵌入代码 (iframe):
<iframe src="https://lucentool.com/zh/curl-to-code" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/zh/curl-to-code" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - cURL 命令转 Python/JS/Go 代码</a></div>

工作原理

本工具解析 cURL 命令(-X、-H、-d、--data、--data-raw、--header、-b、-u 等参数以及 URL),并生成所选语言的惯用代码。支持:

一切都在你的浏览器中运行——命令永远不会离开你的电脑。