{"id":18418976,"url":"https://github.com/smrfeld/medium-to-markdown","last_synced_at":"2026-04-17T05:03:12.551Z","repository":{"id":115478499,"uuid":"517456265","full_name":"smrfeld/medium-to-markdown","owner":"smrfeld","description":"Helpers to parse your data downloaded from Medium into markdown","archived":false,"fork":false,"pushed_at":"2023-12-30T01:25:06.000Z","size":1289,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-24T16:24:58.044Z","etag":null,"topics":["convert","html","markdown","medium","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smrfeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-07-24T23:04:49.000Z","updated_at":"2022-08-03T16:15:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"951bde3c-9bb6-449f-afea-b7affc7a7817","html_url":"https://github.com/smrfeld/medium-to-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smrfeld/medium-to-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrfeld%2Fmedium-to-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrfeld%2Fmedium-to-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrfeld%2Fmedium-to-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrfeld%2Fmedium-to-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smrfeld","download_url":"https://codeload.github.com/smrfeld/medium-to-markdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrfeld%2Fmedium-to-markdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["convert","html","markdown","medium","python"],"created_at":"2024-11-06T04:15:16.551Z","updated_at":"2026-04-17T05:03:12.522Z","avatar_url":"https://github.com/smrfeld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Medium to markdown\n\nConvert your medium articles from their `html` format to `markdown`. A deep copy of your data can be made, including images.\n\n## Example\n\nAn example input and output are located in the `example` directory.\n\n\u003cimg src=\"readme_figures/html.png\" alt=\"drawing\" width=\"400\"/\u003e\n\n\u003cimg src=\"readme_figures/markdown.png\" alt=\"drawing\" width=\"400\"/\u003e\n\n## Usage\n\n1. Go to your medium account and request a copy of your data.\n\n2. Look for the `posts` directory where your articles are located in `html` format.\n\n3. Execute:\n    ```\n    python run.py convert --posts-dir \u003cPATH_TO_POSTS\u003e --output-dir \u003cDESIRED_OUTPUT_DIRECTORY\u003e\n    ```\n    to convert the posts into the output directory in Markdown format.\n\n    The default posts directory is `posts` and the default output directory is `output`.\n    \n    The `convert` command executes the following commands:\n    ```\n    convert_html_to_md(args)\n    download_imgs(args, cover_img_only=True)\n    resize_cover_imgs0(args)\n    ```\n    i.e.\n    1. Converts HTML in the `posts` directory to markdown\n    2. Downloads the cover images\n    3. Resizes the cover images\n\n    You can also run the commands independently:\n    ```\n    python run.py convert-html-to-md\n    python run.py download-cover-imgs\n    python run.py resize-cover-imgs\n    ```\n    To see a full list of options:\n    ```\n    python run.py -h\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmrfeld%2Fmedium-to-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmrfeld%2Fmedium-to-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmrfeld%2Fmedium-to-markdown/lists"}