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

发布于 2024-08-08 05:36:49 字数 350 浏览 4 评论 0原文

我正在研究从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

桃气十足 2024-08-15 05:36:49

是否有任何工具可以转换 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?

谜泪 2024-08-15 05:36:49

我不知道有什么工具,但你也许能够解析内容。有点有趣的实验;)

档案的网址是: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 文件。您还需要一个图像处理过程。为了让事情变得简单,您可以创建镜像档案的文件夹结构。

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:

<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">

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文