# ping-weblogs.py -- Pings weblog directory services, such as weblogs.com. # # The script requires at least Python 2.2. # # You should customize 'weblogName' and 'weblogUrl'. You could customize # 'pingUrls'. # # Check http://www.janek.org/Software for the latest version. # # Copyright (C) 2004 Janek Schwarz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA from xmlrpclib import ServerProxy; weblogName = 'The Wannabe Java Rockstar'; weblogUrl = 'http://weblog.janek.org/'; pingUrls = [ 'http://rpc.weblogs.com/RPC2', 'http://xmlrpc.blogg.de/', 'http://ping.blo.gs/', 'http://rpc.technorati.com/rpc/ping', 'http://ping.rootblog.com/rpc.php', 'http://api.my.yahoo.com/RPC2', 'http://javablogs.com/xmlrpc', 'http://rpc.blogrolling.com/pinger/' ]; for url in pingUrls: server = ServerProxy(url); print server; try: print server.weblogUpdates.ping(weblogName, weblogUrl); except Exception, v: print "ERROR", v