简易爬虫 - base_pget

功能描述

爬虫, 抓取数据.

应用场景

调用http协议的API接口, 数据抓取.

类图

sh: 1: dot: not found

使用指南

例子:

<?php
$url 
= 'blog.wanxiaohong.cn';
$http = kernel::single('base_httpclient'); 
$http->timeout = 6; //设置超时时间为6秒, 默认为10秒
$http->defaultChunk = 4096; //
$http->http_ver = '1.0' //发起http请求使用的http版本, 默认为1.1

$result = $http->get($url);

內容目录

上一个主题

编码转换工具 - base_charset

下一个主题

app提供的services

快速搜索

输入相关的模块,术语,类或者函数名称进行搜索