Code Monkey home page Code Monkey logo

cmc-transparencia's Introduction

CMC Transparência

Project to transform the data of "Portal da Transparência" of Câmara Munipal de Curitiba into a user-friendly and anonymously data.

This project was made with python3 and scrapy.

Dependencies

pip install Scrapy

Grupo de Servidores

[
    { id: 1, name: 'Vereadores' },
    { id: 2, name: 'Efetivos' },
    { id: 3, name: 'Comissionados' },
    { id: 4, name: 'Inativos' },
    { id: 5, name: 'Ouvidor' },
    { id: 6, name: 'Cedido para a Câmara' },
    { id: 7, name: 'Cedido pela Câmara' },
    { id: 8, name: 'Temporário' },
    { id: 9, name: 'Estagiário' },
]

Running the project

CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=1 CMC_MESANO='05/2017' scrapy crawl holerite -o data/vereadores.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=2 CMC_MESANO='05/2017' scrapy crawl holerite -o data/efetivos.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=3 CMC_MESANO='05/2017' scrapy crawl holerite -o data/comissionados.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=4 CMC_MESANO='05/2017' scrapy crawl holerite -o data/inativos.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=5 CMC_MESANO='05/2017' scrapy crawl holerite -o data/ouvidor.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=6 CMC_MESANO='05/2017' scrapy crawl holerite -o data/cedido-para-camara.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=7 CMC_MESANO='05/2017' scrapy crawl holerite -o data/cedido-pela-camara.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=8 CMC_MESANO='05/2017' scrapy crawl holerite -o data/temporario.json
CMC_CPF={CPF} CMC_SENHA={SENHA} CMC_GRUPO=9 CMC_MESANO='05/2017' scrapy crawl holerite -o data/estagiario.json

Generating the HTML

node javascript/generate-table.js data/vereadores.json > html/vereadores.html;
node javascript/generate-table.js data/efetivos.json > html/efetivos.html;
node javascript/generate-table.js data/comissionados.json > html/comissionados.html;
node javascript/generate-table.js data/inativos.json > html/inativos.html;
node javascript/generate-table.js data/ouvidor.json > html/ouvidor.html;
node javascript/generate-table.js data/cedido-para-camara.json > html/cedido-para-camara.html;
node javascript/generate-table.js data/cedido-pela-camara.json > html/cedido-pela-camara.html;
node javascript/generate-table.js data/temporario.json > html/temporario.html;
node javascript/generate-table.js data/estagiario.json > html/estagiario.html;

cmc-transparencia's People

Contributors

nerijunior avatar

Watchers

Flávio H. Ferreira avatar

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.