Skip to main content

Scraper for ALLRIS

Project description

Apache License 2.0 Python 3.7 and 3.8 version 0.5.1

This scraper offers both public and private scraping. The latter requires your username and password and performs the following tasks for you:

  • login

  • download of all agendas and motions related to upcoming meetings of committees and plenary sessions

    • Only considers meetings where you already have been invited formally through ALLRIS.

IMPORTANT: All districts are supported but official committee abbreviations will only work for Eimsbüttel as of now.

The public scraper ought to be used with care as it accesses all accessible pages of an entire month. Currently, June 2020 is hardcoded and it can only be used in a GUI environment.

Requirements

Initial setup

  1. Install ALLRIS scraper pip install twomartens.allrisscraper (you need Python 3.7+)

  2. Run ALLRIS scraper a first time tm-allrisscraper (creates config ini in your current working directory)

  3. Fill out the config file with your login credentials and an absolute path on your system to store PDFs of files

Configuration

[Default]
; possible values for district: Altona, Bergedorf, Eimsbüttel, Hamburg-Nord,
; Hamburg-Mitte, Harburg, Wandsbek
district = Eimsbüttel
; if you are not from Eimsbüttel your domain ending will differ
username = max.mustermann@eimsbuettel.de
; password is stored in clear text, therefore ini file should have most
; restrictive read permissions
password = VerySecurePassword
; location for storage of PDFs (trailing slash is IMPORTANT)
pdflocation = /path/to/storage/of/PDFs/
; location of the firefox binary
firefoxBinary = /Pfad/zur/firefox.exe
; location of the geckodriver binary
geckodriver = /Pfad/zum/geckodriver

Usage after initial setup

Run ALLRIS scraper: tm-allrisscraper (takes a few seconds to finish)

In the specified location for download you will find the following structure:

  • YYYY-MM-DD_Abbreviation of committee or plenary session/ (one directory for each meeting)

  • files inside the directory: Einladung.pdf (contains invitation), Mappe.pdf (contains all motions in one document), and Tagesordnung.pdf (agenda)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twomartens.allrisscraper-0.5.3.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

twomartens.allrisscraper-0.5.3-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file twomartens.allrisscraper-0.5.3.tar.gz.

File metadata

  • Download URL: twomartens.allrisscraper-0.5.3.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for twomartens.allrisscraper-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2c1b1630ba289c1ff506f0dc23fe5fa1dbb55282577c8ce9b8632c8db83cb452
MD5 4dce64afbfc48168e40cdafd660cfdec
BLAKE2b-256 2e74713c180d4f99b5db8c6316b0cae7794a1ddc4956cd48982b06982e23433e

See more details on using hashes here.

File details

Details for the file twomartens.allrisscraper-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: twomartens.allrisscraper-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for twomartens.allrisscraper-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c33a8ebf1d4cad89d83b282a1b57bab3dbb9905e8ecbfc58a853061217d6d6ac
MD5 c6d5ca16d9724a6bc7fc44fa7f972409
BLAKE2b-256 ddaf1466b79818ae76986c9a91332b99202288eb24dd33c44f7c757d3d4f0070

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page