21 lines
524 B
PHP
21 lines
524 B
PHP
<?php
|
|
|
|
require __DIR__.'/vendor/autoload.php';
|
|
|
|
use Scraping\Scraper;
|
|
|
|
$start_url = 'https://este.trasparenza-valutazione-merito.it/web/amministrazionetrasparente/papca-ap/-/papca/igrid/1452834656/1452816457';
|
|
|
|
$filters = [
|
|
'//td[@class="actions"]/a[@title="Visualizza Allegato"]',
|
|
'//table[@class="allegati"]/a[@title="Download versione non firmata"]'
|
|
];
|
|
|
|
|
|
$scraper = new Scraper();
|
|
$scraper->levels = count($filters);
|
|
|
|
foreach ($filters as $i => $filter) {
|
|
$scraper->scrape('GET', $start_url, $filters, $i);
|
|
}
|