grapper with flaresolverr in docker
This commit is contained in:
1 parent
911b515021
commit
8325f3a334
6 files changed
+47
-11
No files matched your search
@@ -20,6 +20,7 @@ trait GrappingToExcel
|
||||
}
|
||||
|
||||
$titel = ucfirst($folder).'_'.Carbon::now()->format('Y-m-d');
|
||||
|
||||
$files = $this->get_tree("$this->data_dir/$folder");
|
||||
|
||||
$files = array_chunk($this->filter($files), self::$max);
|
||||
@@ -66,7 +67,7 @@ trait GrappingToExcel
|
||||
|
||||
$spreadsheet->setActiveSheetIndex(0);
|
||||
$writer = IOFactory::createWriter($spreadsheet, 'Xlsx');
|
||||
$writer->save("$titel-$from-$to.xlsx");
|
||||
$writer->save("$this->data_dir/$folder/$titel-$from-$to.xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user