Explorar el Código

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

master
duncan.parkes hace 16 años
padre
commit
babe3c4d20
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. +2
    -3
      python_scrapers/CGITemplate

+ 2
- 3
python_scrapers/CGITemplate Ver fichero

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

Cargando…
Cancelar
Guardar