开发者

How to automatically transfer posts from 1 blog to another?

I have 2 blogs [http://######.blogspot.com].

In 1 blog I have some posts labelled as Linux. I want all of my Linux labelled posts to automaticall开发者_运维百科y transfer to my other blog. I want that whenever I post anything labelled as Linux then a copy of the same post should get posted to the other blog.

How can I do this? Tell me the procedure.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜