Ajout source Insee
This commit is contained in:
parent
93eac66503
commit
653439a146
29
bin/sourceInsee.php
Normal file
29
bin/sourceInsee.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$jobby = new Jobby\Jobby();
|
||||
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
|
||||
// MARQUE
|
||||
$jobby->add('INSEE', [
|
||||
'command' => 'curl -s https://www.data.gouv.fr/fr/datasets/base-sirene-des-entreprises-et-de-leurs-etablissements-siren-siret/'.
|
||||
' | grep http.*zip -o | sort | uniq | wget -c -N -i -P/home/data/sources/opendata/insee -',
|
||||
|
||||
'schedule' => '01 13,18 * * 1-5',
|
||||
|
||||
'output' => '/home/scores/batch/shared/log/sourceinsee.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
]);
|
||||
|
||||
// Run
|
||||
$jobby->run();
|
Loading…
Reference in New Issue
Block a user