Automation init...
This commit is contained in:
parent
f7afe81aeb
commit
7228aae9ac
@ -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();
|
||||
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user