Sfoglia il codice sorgente

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

master
duncan.parkes 16 anni fa
parent
commit
babe3c4d20
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +2
    -3
      python_scrapers/CGITemplate

+ 2
- 3
python_scrapers/CGITemplate Vedi 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

Caricamento…
Annulla
Salva