Api官方接口
每日:http://open.iciba.com/dsapi/
查指定时间:http://sentence.iciba.com/index.php?c=dailysentence&m=getdetail&title=2018-11-06&_=1541655200812
杨小杰Apis:https://wiki.yum6.cn/docs/apis/wiki
搭建采集接口
<?php
header("Content-type: text/html; charset=utf-8"); //设置编码 utf-8
$t1 = microtime(true);
$utime = date("Y-m-d");//api的尾缀时间
$translation = '0';//翻译语句,0不采集,1采集
$content = '1';//英语版,0不采集,1采集
//使用curl提高运行速度 不用动
function httpGet($url) {
$curl = curl_init();
$httpheader[] = "Accept:*/*";
$httpheader[] = "Accept-Language:zh-CN,zh;q=0.8";
$httpheader[] = "Connection:close";
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows

本文介绍了如何采集金山词霸的每日一句Api,包括官方接口和杨小杰Apis的使用。同时,讲解了如何搭建采集接口以获取过去100天的数据,并提到了可以利用宝塔计划实现每日定时采集。
最低0.47元/天 解锁文章
3133

被折叠的 条评论
为什么被折叠?



