Automation init...

This commit is contained in:
최준흠 2024-08-30 19:55:38 +09:00
parent f7afe81aeb
commit 7228aae9ac
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,8 @@ class Crawl extends BaseController
public function html()
{
try {
$client = new Client();
// $client = new Client(); -> CURL erro 60: SSL certificate problem
$client = new Client(['verify' => false]);
$response = $client->request('GET', 'https://www.yamap16.com/Board/List.aspx?id=free&ca=1');
$html = $response->getBody()->getContents();

View File

@ -13,6 +13,7 @@
"php": "^8.1",
"codeigniter4/framework": "^4.0",
"guzzlehttp/guzzle": "^7.9",
"symfony/css-selector": "^7.1",
"symfony/dom-crawler": "^7.1"
},
"require-dev": {