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