Browse Source

Try moving prints to above the scrape (for Haringey and Westminster problem).

master
duncan.parkes 16 years ago
parent
commit
babe3c4d20
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      python_scrapers/CGITemplate

+ 2
- 3
python_scrapers/CGITemplate View File

@@ -23,9 +23,8 @@ import %(module)s

parser = %(module)s.%(parser)s(authority_name, authority_short_name, base_url)

xml = parser.getResults(day, month, year)


print "Content-Type: text/xml; charset=utf-8" # XML is following
print

xml = parser.getResults(day, month, year)
print xml.encode("utf-8") # print the xml

Loading…
Cancel
Save