Mercurial > ~darius > hgwebdir.cgi > scrape-gm
diff scrape-gm.py @ 10:0e18c714b69d
Update for new page layout.
Luckily no substative changes! :)
author | darius@inchoate.localdomain |
---|---|
date | Fri, 29 Feb 2008 19:19:14 +1030 |
parents | fbaf34d7bab7 |
children | 22a51e8c0a69 |
line wrap: on
line diff
--- a/scrape-gm.py Fri Feb 29 10:20:28 2008 +1030 +++ b/scrape-gm.py Fri Feb 29 19:19:14 2008 +1030 @@ -99,12 +99,12 @@ def Scrape(handle): s = BeautifulSoup.BeautifulSoup(handle) - playertbl = s.find("table", "search_table") + playertbl = s.find("table", "results") if (playertbl == None): #print "Unable to find results" return None - servertbl = playertbl.findNext("table", "search_table") + servertbl = playertbl.findNext("table", "results") playerrows = playertbl.findAll("tr") serverrows = servertbl.findAll("tr")