{"id":30885776,"url":"https://github.com/5mdld/anki-apkg-extractor","last_synced_at":"2026-04-29T16:35:07.578Z","repository":{"id":312339146,"uuid":"1045535770","full_name":"5mdld/anki-apkg-extractor","owner":"5mdld","description":"Extract Anki .apkg packages into notes + templates + media. Supports Anki collection SQLite formats: collection.anki21b, collection.anki21, collection.anki2.","archived":false,"fork":false,"pushed_at":"2026-03-11T06:45:40.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T01:25:31.610Z","etag":null,"topics":["anki","apkg","csv","extractor","flashcards","media","protobuf","protocol-buffers","python","python3","spaced-repetition","sqlite","templates","zstandard","zstd"],"latest_commit_sha":null,"homepage":"https://ankiweb.net/shared/by-author/842333142","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/5mdld.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-27T10:28:14.000Z","updated_at":"2026-03-11T06:45:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c19746c-37aa-47a5-884d-3324f51bffd0","html_url":"https://github.com/5mdld/anki-apkg-extractor","commit_stats":null,"previous_names":["5mdld/anki-apkg-extractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/5mdld/anki-apkg-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5mdld%2Fanki-apkg-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5mdld%2Fanki-apkg-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5mdld%2Fanki-apkg-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5mdld%2Fanki-apkg-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5mdld","download_url":"https://codeload.github.com/5mdld/anki-apkg-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5mdld%2Fanki-apkg-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["anki","apkg","csv","extractor","flashcards","media","protobuf","protocol-buffers","python","python3","spaced-repetition","sqlite","templates","zstandard","zstd"],"created_at":"2025-09-08T12:11:36.151Z","updated_at":"2026-04-29T16:35:07.573Z","avatar_url":"https://github.com/5mdld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anki APKG Extractor\n\nExtract Anki `.apkg` packages into notes + templates + media. Supports Anki collection SQLite formats: `collection.anki21b`, `collection.anki21`, `collection.anki2`.\n\n## Requirements\n- Python ≥ 3.8\n- Optional for 21b: `pip install \"zstandard\u003e=0.19\" \"protobuf\u003e=4.21\"`\n\n## Configuration\nYou can configure the output format of `notes.csv` by modifying the global variables at the top of the `anki_apkg_extract.py` script:\n```python\n# --- Output Settings ---\nCSV_SEPARATOR = \"tab\"    # \"comma\", \"tab\", \"semicolon\", \"space\", \"pipe\", \"colon\"\nCSV_HTML = True          # True: keep HTML, False: strip HTML and media references\nCSV_GUID_COL = True      # Output guid column\nCSV_NOTETYPE_COL = True  # Output notetype column\nCSV_DECK_COL = True      # Output deck column\nCSV_TAG_COL = True       # Output tags column\n```\n\n## Usage\n\n```bash\n# scan *.apkg next to the script\npython anki_apkg_extract.py\n\n# specify files or a directory; overwrite without prompt\npython anki_apkg_extract.py --apkg /path/to/a.apkg /dir/with/apkg --yes\n\n# or skip prompt via env\nANKI_EXTRACT_FORCE=1 python anki_apkg_extract.py\n```\n## Output\n\n```text\n\u003capkg-basename\u003e/\n  notes.csv        # UTF-8 with Anki import hints\n  medias/          # reconstructed media files\n  templates/       # CSS + per-template HTML\n```\n\n## Notes\n\n- 2.1/2.0 work with stdlib only.\n- 2.1b requires zstandard + protobuf.\n\n## Acknowledgments\n\nThanks to Telegram user `@KarasawaKoko` for contributing portions of this project.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5mdld%2Fanki-apkg-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5mdld%2Fanki-apkg-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5mdld%2Fanki-apkg-extractor/lists"}