Skip to content

Commit

Permalink
Fist pass
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMadejski committed Feb 21, 2015
1 parent a2f7bc9 commit 1b5bf51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
1. Clone repo `git clone https://github.com/epforgpl/parldata-scrapers-poland-senat && cd parldata-scrapers-poland-senat`
1. Install dependencies `composer install` [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)
2. Configure it (specify password at least) `cp config.php.default config.php && vim config.php`
2. Make first pass `php process.php updateSenatorsList`
2. Make first pass `php process.php updateSenators`
2. Disable first pass `vim config.php`
3. Install crontab `sudo php process.php crontab > /etc/cron.d/scrapers-poland-senat`
4. Enjoy data being pushed to http://api.parldata.eu/pl/senat
4 changes: 1 addition & 3 deletions config.php.default
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ define('API_ENDPOINT', 'https://api.parldata.eu/pl/senat');
define('DEBUG', false);
define('CACHE_ENABLED', false);
define('SKIP_CRT_VALIDATION', false);
define('FIRST_PASS', true); // change to false after first pass :)i

// TODO first pass script
define('FIRST_PASS', true); // change to false after first time calling updateSenatorsList and updateSenators :)i

0 comments on commit 1b5bf51

Please sign in to comment.