将 Wordpress.com 托管博客转换为 BlogEngine.NET
我正在研究从 wordpress.com 迁移到 BlogEngine.NET 或类似博客需要什么。我见过一个用于替换export.php的工具,以便它将以BlogML格式导出您的wordpress网站,以便可以轻松地将其导入BlogEngine.NET,但是我真的不想设置php/wordpress,这样我可以从 wordpress.com 导入备份,然后使用本地 WordPress 的导出来获得 BlogML 文件。
有没有可以转换wordpress文件的工具?是否有其他博客可以本地导入 wordpress 文件?
编辑:对于有关其他博客提供商的问题,我对他们持开放态度,只要他们是基于.NET的,最好是C#。
I'm looking at what is needed to move from wordpress.com to a BlogEngine.NET or similar blog. I've seen a tool for replacing export.php so that it will export your wordpress site in BlogML format so it can easily be imported into BlogEngine.NET, however I'd really not want to have to setup php/wordpress just so I can import a back up from wordpress.com and then use the export from my local wordpress to have a BlogML file.
Are there any tools that will convert the wordpress file? Is there a different blog that will natively import the wordpress file?
Edit: For the question about other blog providers, I am open to them as long as they are .NET based, preferably C#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是否有任何工具可以转换 wordpress 文件?
wordpress.com 以 XML 格式导出,因此这可能比使用 feed 或以其他方式获取 html 并解析它更容易。 Navicat 支持将 XML 导入 PHPMyAdmin,从而导出 SQL。
是否有其他博客可以本地导入 wordpress 文件?
您是否愿意使用 BlogEngine 以外的平台?
Are there any tools that will convert the wordpress file?
wordpress.com exports in XML, so that might be easier than using feeds or otherwise grabbing html and parsing it. Navicat supports XML into PHPMyAdmin, which exports SQL.
Is there a different blog that will natively import the wordpress file?
Are you open to using platforms other than BlogEngine?
我不知道有什么工具,但你也许能够解析内容。有点有趣的实验;)
档案的网址是:yourblog.wordpress.com/year/month;例如 yourblog.wordpress.com/2009/11。页面的内容包装在 id="content" 的 div 中。每个帖子都包含在一个子 div 中,该子 div 包含一个名为“post”的类,并且目标 href 包含在子 H2 标签中。
它看起来大致是这样的:
您可能可以为每个月存档页面执行一次 get 操作,并使用 jQuery 解析出每个帖子的 href。获得所有 href 后,您可以运行另一个进程来提取每个 html 文件。您还需要一个图像处理过程。为了让事情变得简单,您可以创建镜像档案的文件夹结构。
I don't know of any tool but you may be able to parse the content. Sort of a fun experiment ;)
The url for the Archives is: yourblog.wordpress.com/year/month; e.g. yourblog.wordpress.com/2009/11. The content for the page is wrapped in a div with the id="content". Each post is wrapped in a child div that contains a class called "post", and the target href is contained in a child H2 tag.
It looks roughly like this:
Potentially you could do a get for each monthly archive page and use jQuery to parse out the href to each post. Once you have all the hrefs you could run another process that would pull down each html file. You would also need a process for the images. To keep things easy you could create folder structure that mirrors the archives.