10 lines
513 B
PHP
10 lines
513 B
PHP
<?php
|
|
// Ethica MA scraper launcher — async via nohup (no wait)
|
|
header("Content-Type:application/json");
|
|
$t = $_GET["t"] ?? "";
|
|
if ($t !== "ETHICA_API_2026_SECURE") { http_response_code(403); die(json_encode(["error"=>"NO"])); }
|
|
$b = (int)($_GET["batch"] ?? 50);
|
|
$logfile = "/var/log/weval/ethica-ma-boost-" . date("Ymd-His") . ".log";
|
|
@exec("nohup python3 /opt/weval-l99/ethica-enrich-ma.py $b > $logfile 2>&1 &");
|
|
echo json_encode(["ok"=>true,"action"=>"scraper_launched_async","batch"=>$b,"log"=>$logfile]);
|