Open Data scrapper of political parties registries. Currently only for Ministry of Interior of Spain registry. Open to other countries!
Ruby
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit behind imdario:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
data/spain
examples
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
pipar.gemspec

README.md

Pipar

Open Data scrapper of political parties registries. Currently only for Ministry of Interior of Spain registry. Open to other countries!

It was meant to be OpenRPP (Registro de Partidos Políticos) but... Why not being open to international collaboration? So, it was meant to be OpenPPR (Political Parties Registry) but... PPR, in Spanish, sounds like PePpeR so... Why not translating "pepper" to Íslenska?

That is how it got its name: Pipar. Now with more data. Available under MIT license.

Legal note: extracted data belongs to the corresponding institutions (Ministry of Interior of Spain et al) and it is released under CC0 or another fitting license, depending on country's legislation of each registry.


Extractor Open Data de registros de partidos políticos. Actualmente sólo para el registro del Ministerio del Interior. ¡Abierto a más países!

Debió llamarse OpenRPP (Registro de Partidos Políticos) pero... ¿Por qué no hacerlo internacional? Así, debió llamarse OpenPPR (Political Parties Registry) pero... PPR suena a PePper así que... ¿Por qué no traducirlo al Íslenksa?

Así es cómo acabó con este nombre: Pipar. Ahora con más datos. Disponible bajo licencia MIT.

Nota legal: la información extraída pertenece a las correspondientes instituciones (Ministerio del Interior y otros) y es liberada bajo CC0 o otra licencia adecuada a la legislación del país de cada registro.

Installation

$ git clone https://github.com/qomun/pipar.git
$ cd pipar
$ bundle install

Usage

$ ruby bin/pipar path/to/recipe

Recipes

You must write a recipe in order to use Pipar. Check the examples directory. The following attributes are mandatory:

  • registry: class to use as scraper.
  • data_dir: where data must be stored.
  • data_file: where to dump the extracted data as JSON.
  • url: initial URL.

Other attributes can be added and made mandatory for one or more registries.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request