Primo commit
This commit is contained in:
20
scrape.php
Normal file
20
scrape.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?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);
|
||||
}
|
Reference in New Issue
Block a user