Project

lobbyliste

0.0
No commit activity in last 3 years
No release in over 3 years
This gem crawls and parses the the list of lobbyists which is published as a PDF by the German Bundestag.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 5.0
>= 0
~> 10.0
>= 0

Runtime

 Project Readme

Lobbyliste

Build Status Documentation Status

This gem crawls and parses the the list of lobbyists which is published as a PDF by the German Bundestag. Our goal is to provide a simple and easy to maintain parser.

Installation

Add this line to your application's Gemfile:

gem 'lobbyliste'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lobbyliste

NOTE: This gem requires JAVA to be installed. We use PDFBox for PDF extraction as this currently seems to be the best alternative

Usage

require 'lobbyliste'

list = Lobbyliste.fetch_and_parse
organisation = list.organisations.first

organisation.name #=> 1219. Deutsche Stiftung für interreligiösen und interkulturellen Dialog e. V.

organisation.people.map {|person| person.name} #=> ["Claudius Groß", "Markus Hoymann", "Thomas M. Schimmel"]

organisation.tags #=> ["Kultur", "Religion"]

organisation.abbreviations #=> []

address = organisation.address
puts address.full_address
# 1219. Deutsche Stiftung für interreligiösen und #interkulturellen Dialog e. V.
# Hinter der katholischen Kirche 3
# 10117 Berlin
# Deutschland
# Tel: +4930 51057773
# Fax: +4930 51057785
# Email: schimmel@1219.eu
# http://www.1219.eu

CLI

You can also use this gem on your comandline. It will dump the complete list as JSON

For example to create a gziped json file run:

$ lobbyliste | gzip > lobbyliste.json.gz 

Special Thanks

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/FHG-IMW/lobbyliste. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.