GithubHelp home page GithubHelp logo

skbasava / india-election-affidavits Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vonter/india-election-affidavits

0.0 0.0 0.0 102.9 MB

Dataset of candidate affidavits filed during elections. Sourced from MyNeta.

License: Open Data Commons Open Database License v1.0

Python 100.00%

india-election-affidavits's Introduction

india-election-affidavits

Dataset of candidate affidavits filed during elections. Sourced from MyNeta, an open data repository platform of Association for Democratic Reforms (ADR). Information submitted by candidates in their affidavits are not guaranteed to match reality.

Browse the dataset using the below links:

More CSV files can be found under the csv/ folder in this repository.

Scripts

  • fetch.py: Fetches the raw HTML pages from MyNeta
  • flatten.py: Parses the raw HTML pages, and generates the CSV dataset
  • append.py: Extends the base CSV dataset with additional columns

Extended

The base CSV dataset has been extended with additional columns in extended/Candidates.csv - for mapping with other datasets:

Thanks to planemad for the mapping columns

License

This india-election-affidavits dataset is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Users of this data should attribute Association for Democratic Reforms (ADR): https://adrindia.org

You are free:

  • To share: To copy, distribute and use the database.
  • To create: To produce works from the database.
  • To adapt: To modify, transform and build upon the database.

As long as you:

  • Attribute: You must attribute any public use of the database, or works produced from the database, in the manner specified in the ODbL. For any use or redistribution of the database, or works produced from it, you must make clear to others the license of the database and keep intact any notices on the original database.
  • Share-Alike: If you publicly use any adapted version of this database, or works produced from an adapted database, you must also offer that adapted database under the ODbL.
  • Keep open: If you redistribute the database, or an adapted version of it, then you may use technological measures that restrict the work (such as DRM) as long as you also redistribute a version without such measures.

Generating

Ensure you have python installed with the required libraries:

# Fetch the data
python fetch.py

# Generate the CSV
python flatten.py

# Include additional columns
python append.py

The fetch script sources data from MyNeta (https://myneta.info/)

TODO

  • Local Bodies
  • Rajya Sabha
  • Election Expenses
  • Detailed affidavit information

Credits

india-election-affidavits's People

Contributors

planemad avatar vonter 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.