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.
- Authenticate with Blogger.
- Query the first blog for posts tagged/categorized Linux.
- Copy the atom content of any posts you haven't already transferred.
- Modify the atom content of the posts in any way you might need to.
- 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.
精彩评论