внёс первые изменения
This commit is contained in:
27
scripts/test_client.php
Normal file
27
scripts/test_client.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?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']);
|
Reference in New Issue
Block a user