{"id":21336794,"url":"https://github.com/sidedwards/contacts-exporter","last_synced_at":"2025-07-02T14:36:19.429Z","repository":{"id":188319615,"uuid":"626162923","full_name":"sidedwards/contacts-exporter","owner":"sidedwards","description":"Export contacts from the macOS Contacts app in vCard format to Markdown files with structured data.","archived":false,"fork":false,"pushed_at":"2024-07-08T20:00:00.000Z","size":12,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T19:48:17.573Z","etag":null,"topics":["contacts-manager","markdown","obsidian","obsidian-md","vcard","vcard-parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidedwards.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-10T23:38:41.000Z","updated_at":"2025-03-21T22:52:06.000Z","dependencies_parsed_at":"2024-07-09T00:18:52.018Z","dependency_job_id":"8f2c93fe-af50-4703-baa0-217bc93be15d","html_url":"https://github.com/sidedwards/contacts-exporter","commit_stats":null,"previous_names":["sidedwards/contacts-exporter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sidedwards/contacts-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidedwards%2Fcontacts-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidedwards%2Fcontacts-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidedwards%2Fcontacts-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidedwards%2Fcontacts-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidedwards","download_url":"https://codeload.github.com/sidedwards/contacts-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidedwards%2Fcontacts-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263157364,"owners_count":23422604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contacts-manager","markdown","obsidian","obsidian-md","vcard","vcard-parser"],"created_at":"2024-11-21T23:55:00.964Z","updated_at":"2025-07-02T14:36:19.354Z","avatar_url":"https://github.com/sidedwards.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contacts Exporter\n\nThis is a Python script to export contacts from the macOS Contacts app in vCard format to Markdown files with structured data. The script is compatible with Python 3.\n\n## Installation\n\nClone this repository or download the script file `main.py`.\n\nThis script requires the `vobject` and `dateutil` Python packages. To install them, run:\n\n```\npip3 install vobject python-dateutil\n```\n\n\n## Usage\n\n1. Open the Contacts app on your macOS.\n2. Create or select a contact group that you want to export.\n3. Open a terminal window and navigate to the directory where you saved `main.py`.\n4. Run the script with `python3 main.py`.\n\nBy default, the script exports the contacts from a default \"Obsidian\" group and saves the Markdown files in the \"📇 Contacts\" folder. You can customize these settings by setting the `CONTACT_GROUP` and `OUTPUT_FOLDER` environment variables, respectively.\n\n## Output\n\nThe script exports each contact as a Markdown file with the following structure:\n\n```md\n## 👤 Name\n- 📧 Email: [email@example.com](mailto:email@example.com)\n- ☎️ Phone: [+1 (555) 123-4567](tel:+15551234567)\n- 🎂 Birthday: [[20000101]]\n- 💍 Anniversary: [[20100101]]\n- 🏢 Organization: Example Inc.\n- 📝 Note: Some notes about the contact.\n- 🌐 Website: [example.com](http://example.com)\n- 📍 Location: 37.7749° N, 122.4194° W\n- 💼 Role: Some role\n- 📛 Title: Some title\n- ♀️ Gender: F\n- 🗣️ Language: English\n- 🏠 Address: 123 Main St, Suite 100, San Francisco\n```\n\n\nThe script supports the following vCard fields:\n- `fn`\n- `email`\n- `tel`\n- `bday`\n- `x_anniversary`\n- `org`\n- `note`\n- `url`\n- `geo`\n- `role`\n- `title`\n- `x_gender`\n- `lang`\n- `adr`\n\n## Notes\n\nIf a vCard field is not present in a contact, the corresponding section will not be included in the Markdown file.\n\nThe script replaces any illegal characters (`\\`, `/`, `*`, `?`, `:`, `\"`, `\u003c`, `\u003e`, `|`) in the contact name with underscores (`_`) to avoid issues with file naming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidedwards%2Fcontacts-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidedwards%2Fcontacts-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidedwards%2Fcontacts-exporter/lists"}