{"id":20190866,"url":"https://github.com/imbios/blogger-to-md","last_synced_at":"2026-04-14T10:31:24.982Z","repository":{"id":104154411,"uuid":"582581566","full_name":"ImBIOS/blogger-to-md","owner":"ImBIOS","description":"Convert Blogger \u0026 WordPress backup blog posts to markdown documents","archived":false,"fork":false,"pushed_at":"2023-04-29T09:51:04.000Z","size":31,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-30T18:17:06.890Z","etag":null,"topics":["blogger","converter","hacktoberfest","hugo","markdown","tool","wordpress"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ImBIOS.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},"funding":{"github":["ImBIOS"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-12-27T09:19:03.000Z","updated_at":"2024-02-29T23:04:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"148d92ad-86d4-4919-addb-77c921ecb4f6","html_url":"https://github.com/ImBIOS/blogger-to-md","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ImBIOS/blogger-to-md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImBIOS%2Fblogger-to-md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImBIOS%2Fblogger-to-md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImBIOS%2Fblogger-to-md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImBIOS%2Fblogger-to-md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImBIOS","download_url":"https://codeload.github.com/ImBIOS/blogger-to-md/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImBIOS%2Fblogger-to-md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"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":["blogger","converter","hacktoberfest","hugo","markdown","tool","wordpress"],"created_at":"2024-11-14T03:46:57.012Z","updated_at":"2026-04-14T10:31:24.963Z","avatar_url":"https://github.com/ImBIOS.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ImBIOS"],"categories":[],"sub_categories":[],"readme":"# Blogger to Markdown\n\n Convert Blogger \u0026 WordPress backup blog posts to hugo compatible markdown documents \n\n\n    Usage: node index.js b|w \u003cBLOGGER BACKUP XML\u003e \u003cOUTPUT DIR\u003e\n\nFor Blogger imports, blog posts and comments (as seperate file `\u003cpostname\u003e-comments.md`) will be created in \"`out`\" directory\n\n```\nnode index.js b your-blogger-backup-export.xml out\n```\n\nFor WordPress imports, blog posts and comments (as seperate file `\u003cpostname\u003e-comments.md`) will be created in \"`out`\" directory\n\n```\nnode index.js w your-wordpress-backup-export.xml out\n```\n\nIf you want the comments to be merged in your post file itself. you can use flag `m` at the end. Defaults to `s` for seperate comments file\n\n```\nnode index.js w your-wordpress-backup-export.xml out m\n```\n\nIf converting from WordPress, and you have posts that do not contain HTML, you can use a `paragraph-fix` flag at the end.\n\n```\nnode index.js w your-wordpress-backup-export.xml out m paragraph-fix\n```\n\n## Installation (usual node project)\n\n* Download or Clone this project\n* `cd` to directory\n* Run `npm install` to install dependencies\n* Run `node index.js \u003carg...\u003e`\n\n## TODO\n\nScript to convert posts from Blogger to Markdown.\n\n- [x] Read XML\n- [x] Parse Entries (Posts and comments) (with xpath?)\n- [x] Parse Title, Link, Created, Updated, Content, Link\n- [ ] List Post \u0026 Respective comment counts\n- [x] Content to MD - pandoc?\n- [ ] Parse Images, Files, Videos linked to the posts\n- [x] Create output dir\n- [ ] List items that are not downloaded( or can't) along with their .md file for user to proceed\n\n\n## Reasons\n\n* Wrote this to consolidate and convert my blogs under one roof.\n* Plain simple workflow with `hugo` \n* Ideas was to download associated assets (images/files) linked to post. Gave up, because it was time consuming and anyhow I need to validate the markdown with assets of converted. And I don't see benefit.\n* Initial assumption was to parse with `xpath` but I found `xml2json.js` was easier\n* Also thought `pandoc` is a overkill and `turndown.js` was successful, though I had to wrap empty `text` to `md` instead of `html`.\n* I want to retain comments. Believe it or not, There were some **good** comments.\n* Was sick and spent around ~12 hrs over 5 days in coding and testing with my blog contents over ~150 posts. And also, I find parsing _oddly satisfying_ when it result in success. `¯\\_(ツ)_/¯`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimbios%2Fblogger-to-md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimbios%2Fblogger-to-md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimbios%2Fblogger-to-md/lists"}