Mercurial > ~darius > hgwebdir.cgi > scrape-gm
diff scrape-gm.py @ 5:294581b9c72f
Restrict searches to Australia.
author | darius |
---|---|
date | Fri, 19 Oct 2007 07:53:00 +0000 |
parents | ac32969d1bec |
children | 5058c2695109 |
line wrap: on
line diff
--- a/scrape-gm.py Sat Aug 25 05:19:37 2007 +0000 +++ b/scrape-gm.py Fri Oct 19 07:53:00 2007 +0000 @@ -5,7 +5,7 @@ # # Prints out matched player names agreated by server # -# $Id: scrape-gm.py,v 1.1.1.1 2007/08/25 05:15:14 darius Exp $ +# $Id: scrape-gm.py,v 1.2 2007/10/19 07:53:00 darius Exp $ ############################################################################ # # Copyright (C) 2007 Daniel O'Connor. All rights reserved. @@ -146,7 +146,7 @@ try: #f = open("gm.html") - f = urllib.urlopen("http://www.game-monitor.com/search.php?search=" + urllib.quote(sys.argv[1]) + "&type=player") + f = urllib.urlopen("http://www.game-monitor.com/search.php?search=" + urllib.quote(sys.argv[1]) + "&type=player&location=AU") except IOError, e: print "Unable to fetch page - " + str(e) sys.exit(0)