将Wordpress.com托管博客转换为BlogEngine.NET

时间:2009-10-14 16:18:50

标签: wordpress migration blogengine.net wordpress.com

我正在研究从wordpress.com迁移到BlogEngine.NET或类似博客所需的内容。我已经看到了一个替换export.php的工具,它会以BlogML格式导出你的wordpress网站,这样它就可以很容易地导入到BlogEngine.NET中,但是我真的不想设置php / wordpress这样我可以从wordpress.com导入备份,然后使用我本地wordpress的导出来获得BlogML文件。

是否有任何工具可以转换wordpress文件?是否有一个不同的博客将原生导入wordpress文件?

编辑:关于其他博客提供商的问题,只要他们是基于.NET的,我就会对他们开放,最好是C#。

2 个答案:

答案 0 :(得分:4)

是否有任何工具可以转换wordpress文件?

wordpress.com以XML格式导出,因此可能比使用Feed或以其他方式获取html并解析它更容易。 Navicat支持XML到PHPMyAdmin,它导出SQL。

是否有一个不同的博客会原生导入wordpress文件?

您是否愿意使用BlogEngine以外的平台?

答案 1 :(得分:2)

我不知道任何工具,但您可以解析内容。一个有趣的实验;)

档案馆的网址是:yourblog.wordpress.com/year/month;例如yourblog.wordpress.com/2009/11。页面的内容包含在id =“content”的div中。每个帖子都包含在一个子div中,该div包含一个名为“post”的类,目标href包含在子H2标签中。

看起来大致如下:

<div id="content">
  <div class="post-597 post hentry category-activeengine category-coaching tag-philosophy">
    <h2>
      <a title="Permalink for : More than .Net, jQuery, S3 and Corporate-Speak" href="http://activeengine.wordpress.com/2009/11/24/more-than-net-jquery-s3-and-corporate-speak/">More than .Net, jQuery, S3 and Corporate-Speak</a>
      <em>November 24, 2009</em>
    </h2>
    <em class="info"></em>
  <div class="snap_preview">
</div>
</div>
<div class="post-562 post hentry category-net category-activeengine category-linux category-mono category-new-techniques category-open-source tag-c tag-mono tag-monodevelop">

您可以为每个月度存档页面执行get操作,并使用jQuery解析每个帖子的href。一旦你拥有了所有的href,你就可以运行另一个可以下拉每个html文件的进程。您还需要一个图像处理过程。为了简单起见,您可以创建镜像档案的文件夹结构。