Skip to content

epforgpl/parldata-scrapers-poland-senat

Repository files navigation

Scraping Polish Senate

Installation

  1. Clone repo git clone https://github.com/epforgpl/parldata-scrapers-poland-senat && cd parldata-scrapers-poland-senat
  2. Install dependencies composer install Composer
  3. Configure it (specify password at least) cp config.php.default config.php && vim config.php
  4. Make first pass php process.php updateSenatorsList
  5. Make first pass php process.php updateSenators
  6. Disable first pass vim config.php
  7. Install crontab sudo php process.php crontab > /etc/cron.d/scrapers-poland-senat
  8. Enjoy data being pushed to http://api.parldata.eu/pl/senat