Coder Social home page Coder Social logo

olhoneles / olhoneles Goto Github PK

View Code? Open in Web Editor NEW
136.0 23.0 26.0 1.32 MB

Tool to monitor Brazilian legislators expenses while in the exercise of their mandates

Home Page: https://olhoneles.org

License: GNU Affero General Public License v3.0

JavaScript 42.32% Python 42.42% CSS 5.28% HTML 9.89% Makefile 0.08%
politicians political-parties django expenses legislative-houses mandate open-data goverment

olhoneles's Introduction

Olho Neles Code Health Build Status

Tool to monitor Brazilian legislators expenses while in the exercise of their mandates.

Install

  1. Clone the repository:

    git clone https://github.com/olhoneles/olhoneles.git
    
  2. Create a virtualenv:

    cd olhoneles
    mkvirtualenv olhoneles
    
  3. Install dependencies:

    make setup
    
  4. Create your database:

    make data
    
  5. Run it:

    make run
    
  6. Change default configs:

    If you would like to override some settings.py variables, like SECRET_KEY, DATABASES, ALLOWED_HOSTS, please create the olhoneles/local.config file.

Collecting the data

After setting up, you can collect one of the supported legislative houses (cmbh, almg, cmsp, senado) by using the collect command like this:

./manage.py collect <house>

You can add --debug after the name of the house to get a more verbose output. Note that the collection process happens in a transaction and that the expenses are not added to the main Expense table while the collection is running, so you will not see partial data in the site while collecting.

API

Yes, we have an API. The Olho Neles API lets you build tools using all data we have collected from legislative houses. All endpoints, parameters and error messages available to the Olho Neles API are docummented.

Contribute

Join us at the dev-mailing list and at #olhoneles on Freenode.

Fork the repository and send your pull-requests.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

olhoneles's People

Contributors

henriquebastos avatar kov avatar luciocorrea avatar marcelometal avatar scorphus avatar shyba avatar tevaum avatar vctrmagno avatar wpjunior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

olhoneles's Issues

Quero usar no meu estado

Só conheço Ruby, mas vou estudar Python só para poder reutilizar esse projeto aqui no Piauí...

Onde vocês consegue as fontes de dados? Fazem com crawler ou existe alguma API do governo onde posso pegar esses dados?

Posso pegar os dados também do Piauí?

Abraço e Parabéns pela iniciativa =D ...

JavaScript obrigatório

A aplicativo web se torna praticamente inútil se o javascript estiver desativado no navegador. O bloqueio ao javascript é essencial para aqueles que querem manter-se minimamente anônimos na internet, como por exemplo com o TorBrowser. O quão difícil seria tornar o aplicativo utilizável sem javascript?

GeoLocation for Suppliers

Example:

<html> 
<head> 
   <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> 
   <title>Google Maps Geocoding Demo 1</title> 
   <script src="http://maps.google.com/maps/api/js?sensor=false" 
           type="text/javascript"></script> 
</head> 
<body> 
   <div id="map" style="width: 400px; height: 300px;"></div> 

   <script type="text/javascript"> 

   var address = 'R JOERG BRUDER, 195, SANTO AMARO, SAO PAULO/SP';

   var map = new google.maps.Map(document.getElementById('map'), { 
       mapTypeId: google.maps.MapTypeId.TERRAIN,
       zoom: 6
   });

   var geocoder = new google.maps.Geocoder();

   geocoder.geocode({
      'address': address
   }, 
   function(results, status) {
      if(status == google.maps.GeocoderStatus.OK) {
         new google.maps.Marker({
            position: results[0].geometry.location,
            map: map
         });
         map.setCenter(results[0].geometry.location);
      }
   });

   </script> 
</body> 
</html>

http://stackoverflow.com/questions/3078084/can-i-provide-addresses-instead-of-latitude-and-longitude-to-google-maps

Coletores para o Rio Grande do Norte

Pretendo fazê-los:

Mas quero focar só nos coletores, vendo o mínimo possível do restante do projeto. Já sei onde estão os exemplos de código dos coletores: olhoneles``/``montanha``/``management``/commands

Vocês podem, por favor, descrever, em linguagem humana e simples, resumida, os tipos de consulta que interessam nesses sites. Falta algo neles? Os detalhes eu verei nos coletores existentes...

Sugestão: transformar isso em "tutorial", para a acolhida de novos colaboradores.
→ Eu sei que posso colher as respostas para esta issue estudando os coletores que já existem. Mas eu não quero estudar código sem o propósito definido de implementar algo. Se eu souber os dados dos quais precisarei, quando olhar os sites, poderei decidir se vou implementar algo. Penso que para outros potenciais colaboradores a coisa pode funcionar assim também, e por isso minha sugestão.

Update: pensei melhor e vi que o que lhes peço acima pode ser trabalhoso para vocês. Então eu mesmo vou tentar levantar a informação que é mais superficial. Comecei a estudar os coletores.

Error loading the site if you don't have pt_BR.UTF-8 locale

If you don't have pt_BR.UTF-8 locale, the site will not load.

Should it really be forced in views.py, using locale.setlocate()?

Isn't LANGUAGE_CODE=pt-BR in settings the corrrect way of doing that?

The returned error:

Error at /Senado/per-nature
unsupported locale setting
Request Method: GET
Request URL: http://localhost:8000/Senado/per-nature
Django Version: 1.6.1
Exception Type: Error
Exception Value:
unsupported locale setting
Exception Location: /home/vagrant/envs/olhoneles/lib/python2.7/locale.py in setlocale, line 547
Python Executable: /home/vagrant/envs/olhoneles/bin/python
Python Version: 2.7.4

View parliamentary expenses per year

A view-by-year feature would help discriminizing yearly-peaks and finding patterns associated with events like protests, economic crises, etc. I know that it depends on how each source provides the data, but it would be a very useful feature to have.

Thanks,

Paulo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.