# HG changeset patch # User darius # Date 1188181767 0 # Node ID e3f4ef0b6e390c67691fd07ed999d9e69851c18e # Parent 89232ea0c3d4cf33647a2f3c06a59652f7a68132 Oops, read URL from configuration like I planned. diff -r 89232ea0c3d4 -r e3f4ef0b6e39 scrape-vb.py --- a/scrape-vb.py Mon Aug 27 01:42:11 2007 +0000 +++ b/scrape-vb.py Mon Aug 27 02:29:27 2007 +0000 @@ -6,7 +6,7 @@ # Prints out (and emails) when criteria match based on cost, # destination, etc # -# $Id: scrape-vb.py,v 1.2 2007/08/27 01:42:11 darius Exp $ +# $Id: scrape-vb.py,v 1.3 2007/08/27 02:29:27 darius Exp $ ############################################################################ # # Copyright (C) 2007 Daniel O'Connor. All rights reserved. @@ -47,7 +47,7 @@ try: #f = open("vb-happyhour.html") - f = urllib.urlopen(vburl) + f = urllib.urlopen(conf.get('global', 'vburl')) except IOError, e: print "Unable to fetch page - " + str(e) sys.exit(1)