wip
This commit is contained in:
1 parent
558430114a
commit
f55430fcef
8 files changed
+217
-3838
No files matched your search
@@ -24,6 +24,8 @@ class Grapper
|
||||
|
||||
$active_tournaments = SofaScoreTaskTournament::with('tournament')->where('sofa_score_task_id', $task_id)->where('disabled', false)->get();
|
||||
|
||||
// dd($active_tournaments->toArray());
|
||||
|
||||
foreach ($active_tournaments as $tournament) {
|
||||
|
||||
if ($debug) {
|
||||
@@ -47,6 +49,8 @@ class Grapper
|
||||
|
||||
$data = CurlSofa::load($url);
|
||||
|
||||
dd($data);
|
||||
|
||||
Nuh::$options['s'] = 0;
|
||||
|
||||
Nuh::$options['r'] = 0;
|
||||
@@ -55,6 +59,10 @@ class Grapper
|
||||
|
||||
foreach ($data['events'] as $event) {
|
||||
|
||||
dd($event);
|
||||
|
||||
// "hasEventPlayerStatistics" => true
|
||||
|
||||
$folder = Sofascore::$grapper_path . $day . '/' . $event['tournament']['slug'] . '/' . $event['slug'];
|
||||
|
||||
File::makeDirectory($folder, 0775, true, true);
|
||||
|
||||
Reference in new issue
Block a user