import sys and sys.argv

master
http://www.openid.albertlash.com/openid/ 2009-11-14 14:36:54 -05:00 committed by Joey Hess
parent 65077372fa
commit 7b2571adf4
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@ that this script is sensitive to the specific markup used on the page, so if
you have tweaked your mediawiki theme a lot from the original, you will need
to adjust this script too:
import sys
from xml.dom.minidom import parse, parseString
dom = parse(argv[1])
dom = parse(sys.argv[1])
tables = dom.getElementsByTagName("table")
pagetable = tables[-1]
anchors = pagetable.getElementsByTagName("a")