... | ... |
@@ -518,6 +518,9 @@ fi |
518 | 518 |
|
519 | 519 |
if test "$db_update_only" = $true_flag; then |
520 | 520 |
unset first last |
521 |
+ last=$(wget -qO- 'http://www2.assemblee-nationale.fr/scrutins/liste/(legislature)/15/(type)/TOUS/(idDossier)/TOUS' \ |
|
522 |
+ | sed -rn 's,^.*<td class="denom">(.+)</td>.*$,\1,p' \ |
|
523 |
+ | head -1) |
|
521 | 524 |
update_database |
522 | 525 |
exit |
523 | 526 |
fi |