diff scrape-vb.py @ 4:e3f4ef0b6e39

Oops, read URL from configuration like I planned.
author darius
date Mon, 27 Aug 2007 02:29:27 +0000
parents 89232ea0c3d4
children 275603a8e2ae
line wrap: on
line diff
--- 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)