databr / api Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://console.databr.io/
License: Other
Home Page: http://console.databr.io/
License: Other
O endpoint usa o sistema do Metro:
http://www.metro.sp.gov.br/sua-viagem/trajeto/trajeto.aspx?origemId=152&destinoId=43
RESPONSE:
paths: array
name: string
estimate_time: string
steps: array
image: string
title: string
Pegar os video que o deputado aparece
código de sessão
VideoURL
Evento
Local
Data
Início
Fim
Duração
url exemplo:
http://www2.camara.leg.br/atividade-legislativa/webcamara/resultadoDep?dep=TIRIRICA
Pensando aqui: Deveriamos ter um modelo Video
com todos os videos, com dados basicos como codSessao, local, eventos, etc e um DeputadoVideo
que referencia um video e um deputado com dados como inicio e vim da aparição do mesmo.
O app oficial da CPTM consome este XML:
http://200.196.234.77:8080/AppMobileService/api/LinhasMetropolitanas
Fiz tcpdump nas conexões deste app para descobrir isso.
Ele contém os dados de todas as linhas de SP com uma atualização quase que instantânea.
Acho que se consumir à partir desta API o tempo de recorrência do crawler pode ser diminuido para 10 segundos ou menos e assim a API do databr ficaria mais realtime.
:)
GET /v1/parliamentarians
QUERY EXAMPLE:
scheme=ideCadastro&identifier=XXX
DATA EXAMPLE:
[
{
identifier: "356",
scheme: "nMatricula"
},
{
identifier: "530202",
scheme: "idParlamentar"
},
{
identifier: "160659",
scheme: "ideCadastro"
},
{
identifier: "72562",
scheme: "TransparenciaBrasilID"
}
]
Dados:
Endpoints:
[update] 22/07/13
There are many problems with xml to parser, first is about deputies id See it, another is about the encoding
Create a key system
Cara, estou com um dump da base dos correios de 2011 com os endereços e CEP's do Brasil inteiro, queria colocar isso no databr.
Coloquei num CSV aqui como você acha que é a melhor forma de importarmos pra lá? Criando um bot?
É que essa informação teoricamente não vai ser mais atualizada por lá. Queria colocar uma vez e depois podemos pensar em uma forma de atualizar essas informações.
Depende de:
ENDPOINT: /v1/states/sp/transports/trains/lines/linha1azul/stations
/v1/states/sp/transports/trains/lines/linha1azul/stations/:station_name
stations links: self, line, line (last) status
lines link: (update) stations
Duke, o que você acha do DataBR ter um subdominio pra cada cidade do Brasil? Assim nós teríamos um lugar centralizado pras informações das cidades.
Tipo, sp.databr.io ou rj.databr.io sjc.databr.io e pra cada subdominio ter os conjuntos de dados das cidades.
Buscar foto do perfil do deputado
Adicionar suporte a partidos no projeto
# deputado model
belongs_to :partido
# partido model
has_many :partido
Adicionar gem meta_search, no index dos deputados adicionar busca
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.