作者:日后再曰 | 来源:互联网 | 2024-10-15 21:46
1、问题描述:
使用QueryList爬取https页面报错;
1
| cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in E:\wamp\www\QuerryList\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187 |
2、代码
1 2 3 4 5 6
| $ql = QueryList::get('https://tieba.baidu.com/p/5433606717?pid=115269524228&cid=0#115269524228');
$rules2 = array(
'content' => array('#post_content_115269524228','html')
);
$cOntent= $ql->encoding('UTF-8')->rules($rules2)->query()->getData();
print_r ($content->all()); |