0

我有 2 个博客 [http://######.blogspot.com]。

在 1 篇博客中,我有一些贴为 Linux 的帖子。我希望我所有带有 Linux 标签的帖子都自动转移到我的其他博客。我希望每当我发布任何标记为 Linux 的内容时,应将同一帖子的副本发布到另一个博客。

我怎样才能做到这一点?告诉我程序。

4

1 回答 1

1

Here's a quick outline of what you can do. You'll need to use the Blogger API to get posts from one blog and create them in another. The basic procedure is, assuming you run this as a cron job or manually however often you need to.

  1. Authenticate with Blogger.
  2. Query the first blog for posts tagged/categorized Linux.
  3. Copy the atom content of any posts you haven't already transferred.
  4. Modify the atom content of the posts in any way you might need to.
  5. Post them as new posts in the second blog.

You may run into some specific problems on how to do some of these steps, but that's the basic idea of how you could do this using the Blogger API.

于 2011-06-16T11:31:21.413 回答