27 lines
963 B
PHP
27 lines
963 B
PHP
<?php
|
|
use SvedenParser\Parser\ContingentManager;
|
|
use SvedenParser\Parser\ContingentRepository;
|
|
use SvedenParser\Parser\ContingentService;
|
|
use SvedenParser\Http\CurlHelper;
|
|
use SvedenParser\Http\HttpClient;
|
|
use SvedenParser\PriemParser\PriemManager;
|
|
use SvedenParser\PriemParser\PriemParser;
|
|
|
|
define('SVEDEN_PARSER', '/home/alexander/Downloads/sveden_parser');
|
|
|
|
require_once SVEDEN_PARSER . "/vendor/autoload.php";
|
|
|
|
// $client = new HttpClient();
|
|
// $html = $client->getContentOfSite('http://marsu.ru', [], '/sveden/education');
|
|
// // $curl = new CurlHelper('https://www.rgiis.ru/sveden/education/', []);
|
|
// // $html = $curl->getContent();
|
|
// // echo $html;
|
|
// $parser = new PriemParser($html);
|
|
// $data = $parser->getDataTable();
|
|
|
|
// (new ContingentService())->getData(html)
|
|
// print_r($data);
|
|
// // print_r();
|
|
// (new ContingentRepository())->save($data);
|
|
$manager = new ContingentManager();
|
|
$manager->collectData(['org_id' => 411, 'site' => 'http://marsu.ru']); |