Do you host your blog posts in GeeksWithBlogs.net (GWB)? Well, you probably know then that, GWB does not provide any means to download/backup your posts. This is a big problem if you want to move to another hosting provider like GitHub/Wordpress and you cannot download any your existing posts. Fortunately, GWB posts can be fetched via MetaWebBlog API and with some simple C# code, you can backup your blog posts.
I host my blog here using Jekyll engine and wanted a quick way to convert all my posts in the markdown format. This utility provides a quick way to fetch your posts from GWB and save them as markdown.
- View all your blog posts.
- Save individual posts or all as markdown files.
- Ability to add optional frontmatter (necessary if you are hosting in GitHub for example).
- Dynamically insert GWB author name, post date, and categories.
- Download images in the posts
- GWB returns image name in the posts as
image001.jpg- this tool automatically renames the images with the post tile slug (ex: postdate_in_yymmdd_post_title.jpg)
- Optionally overwrite image path in the markdown - might be useful when you host the images in the root of your folder in your git repo and want to refer images with the full path.
- Run the GeeksWithBlogsToMarkdown.exe
- Enter your GWB blog details in settings
- Click Get posts icon (first icon) from the Main window from top-right options
- Click Save/Save all button to save the post as markdown
Once you click save/save all button, following operations are performed
- Download the images and rename them with the post slug.
- Markdown is generated
- Add any frontmatter after replacing any custom tags (
<$GWB_...$>) with the actual values
- Replace the image URL with the downloaded images - If custom image path is specified that path is used.
There are only two screens actually in the UI. As you can see it is very basic.
- Blog post tile and URL from GWB
- Main menu options
- Get Posts
- Save this post as markdown
- Save all posts as markdown
- All the posts from GWB
- The post HTML received from the GWB (readonly)
- The equivalent markdown generated (readonly)
- Full URL of your GWB blog post
- User name you use to login to admin console
- Password for your admin account
- Output folder where the saved markdown needs to be saved
- Output folder for the downloaded images
- Optional images path to write in the markdown files
- Does not identify languages used in the code snippets. You need to manually add triple backticks and add any languages necessary.
- If you have referred any of your GWB blog post, the URL will be retained as is. You need to replace them manually.
If you just would like to use the tool, download the latest version from here
The code is also open source and you can contribute/check the code on how it is done. Excuse me for code as it is not in a good state, but this was a quick tool developed for sole purpose of moving my blog posts.
About Utkarsh Shigihalli
- VSTS Status Monitor - A Google Chrome extension to monitor VSTS Status
- How to transform Web.Config file 'Properly' with VSTS!
- SpecFlow VSTS Build pipeline with SpecRunner For BDD Style Automated Gherkin Functional Tests
- Infrastructure Deployment Pipelines: Deploying Infrastructure in Azure with VSTS
- HOWTO: Check browser type and its version in your VSTS/TFS extensions
- HOWTO: Copy text to clipboard in VSTS/TFS Extensions
- HelloWorld Chef on Windows, Knife, Cookbook, IIS, Windows Azure & everything in between...
- So... how did it feel recording training for Microsoft?