This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Format { | |
} | |
interface Required { | |
} | |
@GroupSequence({ Default.class, Required.class, Format.class }) | |
interface Sequence { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Format { | |
} | |
interface Required { | |
} | |
@GroupSequence({ Default.class, Required.class, Format.class }) | |
interface Sequence { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import urllib | |
le_pagina = lambda pagina: eval(urllib.urlopen("http://webservices.apontador.com.br/zap/busca.ashx?busca=alugar&uf=RIO%20DE%20JANEIRO&cidade=RIO%20DE%20JANEIRO&page=" + str(pagina)).read())[0] | |
numero = lambda x: float(x.replace(',', '.')) | |
paginas = [le_pagina(i) for i in xrange(1, 8)] | |
f = open('imoveis.csv', 'w') | |
c = csv.writer(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def incrementa(valor, passo=1) | |
valor + passo | |
end |