Listing all your blogposts

So here is a quick snapshot at how to get all your wordpress blogposts using python [or wordpresslib to be specific] – #!/usr/bin/env python import wordpresslib import tinyurl wordpress = raw_input(‘‘Wordpress URL:’’) user = raw_input(‘‘Username:’’) password = raw_input(‘‘Password:’’) prepare client object wp = wordpresslib.WordPressClient(wordpress, user, password) select blog id wp.selectBlog(0) posts = wp.getRecentPosts(100) for p in posts: if p.title.find(“p=”)<0: print p.title," - “,tinyurl.create_one(p.link) – Now that is real easy to use IMHO, i just started using this in one of my scripts....

March 30, 2010 · 1 min · 100 words · Me

My first post at kwippy blog

http://blog.kwippy.com/2008/07/03/technology-behind-kwippy-and-scaling/ A post about how kwippy works and scaling strategies involved. Feel free to ramble and comment.

July 4, 2008 · 1 min · 17 words · Me