[pyKoL-users] SF.net SVN: pykol: [7] test.py
Brought to you by:
scelis
From: <mi...@us...> - 2007-03-31 20:31:24
|
Revision: 7 http://pykol.svn.sourceforge.net/pykol/?rev=7&view=rev Author: misza13 Date: 2007-03-31 13:31:25 -0700 (Sat, 31 Mar 2007) Log Message: ----------- Adding server randomisation (far from perfect) Modified Paths: -------------- test.py Modified: test.py =================================================================== --- test.py 2007-03-31 20:12:02 UTC (rev 6) +++ test.py 2007-03-31 20:31:25 UTC (rev 7) @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import sys +import sys, random from kolsite import KoLSite @@ -14,7 +14,7 @@ print 'Nick or password not specified in config!' return - Site = KoLSite('www.kingdomofloathing.com') + Site = KoLSite('www%s.kingdomofloathing.com' % random.choice('12345678')) Site.doLogin(config['nick'],config['password']) response, data = Site.getPage('main.html') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |