<?php
if (!preg_match('/^python-requests/', $_SERVER['HTTP_USER_AGENT'])) {
	http_response_code(401);
	header('Content-Type: application/json');
	echo '{"details": "you have to use the requests library to access this page"}';
	exit(0);
}

header('Content-Type: text/csv');
$data = shell_exec('python3 ai_bs_generator.py 1000');
echo $data;

