Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2013 13:22
What would you like to do?
Open Topsy reports for your last ten Wordpress blog posts. Details at
import webbrowser
import xmlrpclib
# get posts from wordpress
server = xmlrpclib.ServerProxy('')
result = server.metaWeblog.getRecentPosts('WORDPRESS_BLOG_NAME', 'WORDPRESS_USERNAME', 'WORDPRESS_PASSWORD', 10)
urls = [post['link'] for post in result]
# change into topsy searches
urls = [url.replace('http://', '') for url in urls]
# open all in browser
for url in urls:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment