浏览代码

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

master
duncan.parkes 16 年前
父节点
当前提交
babe3c4d20
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      python_scrapers/CGITemplate

+ 2
- 3
python_scrapers/CGITemplate 查看文件

@@ -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

正在加载...
取消
保存