Skip to content

Instantly share code, notes, and snippets.

View ardasoyer's full-sized avatar
🧑‍💻

Arda Soyer ardasoyer

🧑‍💻
  • Student
  • between europe and middle east
  • 19:07 (UTC +03:00)
View GitHub Profile
@ardasoyer
ardasoyer / curl2shortcut.py
Last active August 11, 2026 09:12 — forked from kernkraft235/curl2shortcut.py
Python Script to convert a complete curl command to a Apple Shortcut Action then place it on clipboard
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
curl2shortcut.py
A script that converts curl commands into Apple Shortcuts "Get Contents of URL" actions.
Reads a curl command (from argument or stdin), parses it to extract the HTTP method,
URL, headers, and JSON data, then builds a properly formatted Shortcuts action and
copies it to the clipboard with the correct UTI so it can be pasted directly into