香港云服务器性价比高:香港云服务器哪家便宜
【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |
首先如何获取必应的api密钥
直接上代码,复制保存为post.php,然后通过宝塔面板的计划任务添加即可。
<?php$arr = array( 'https://www.esphp.com.com' => array( 'url' => array( "https://www.esphp.com/sitemap.xml" ), 'bing_key' => "303c2be9581c432da0f65c6b2fa1b416" ),);foreach ($arr as $i => $j) { //网站地址 $website = $i; //站点地图 $url = $j['url']; //必应key $bing_key = $j['bing_key']; //配额接口调用地址 $quota_api = "https://ssl.bing.com/webmaster/api.svc/json/GetUrlSubmissionQuota?siteUrl=$website&apikey=$bing_key"; //URL提交API接口调用地址 $seturl_api = "https://ssl.bing.com/webmaster/api.svc/json/SubmitUrlBatch?apikey=$bing_key"; $s = file_get_contents($quota_api); $s = json_decode($s, true); echo "$website 必应今日剩余配额:".$s['d']['DailyQuota']." 本月剩余配额:".$s['d']['MonthlyQuota'];echo '<br>'; if($s['d']['DailyQuota']){ $ch = curl_init(); //防https错误 $xmlresponse = curl_exec($ch); $xml=simplexml_load_string($xmlresponse); $urls = array(); foreach ($url as $key => $value) { curl_setopt($ch, CURLOPT_URL, $value); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $xmlresponse = curl_exec($ch); $xml=simplexml_load_string($xmlresponse); foreach ($xml as $key => $value) { $urls[] = $value->loc; } } shuffle($urls); //必应api提交每次上限100条 if ($s['d']['DailyQuota']>=100) { $max = 100; } else { $max = $s['d']['DailyQuota']; } $urls = array_slice($urls, 0,$s['d']['DailyQuota']); if(!$urls){ echo $website.' 今日配额已全部提交!';continue; } $url_data = array_chunk($urls, $max, true); foreach ($url_data as $key => $value) { $url_str = implode(',',$value); $url_arr = explode(',',$url_str); $data = array( "siteUrl"=>$website, "urlList"=>$url_arr ); $ch = curl_init(); $options = array( CURLOPT_URL => $seturl_api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => array('Content-Type: application/json'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo "$website 必应提交信息:".$result;echo '<br>'; } }}?>
将必应提供的key和站点地图修改为自己的即可
[主机测评]历史优惠活动内容
猜你可能想看的VPS
- WinRAR 默认压缩为 ZIP 格式 设置鼠标右键菜单 WinRar 全球[VPS测评]
- hosteons→免费提供 Windows 授权 8 折优惠 $36 年WINDOWS
- 便宜 $1.57 月 1 核 512M 内存 5G SSD 25Mbps全球[VPS测评]
- Hosteons→洛杉矶 KVM VPS 100Mbps 不限流量;免费全球[VPS测评]
- 便宜域名 腾讯云→23 元可以购买 10 年的 XYZ 域名全球[VPS测评]
- 阿里云香港 新加坡 30Mbps 轻量应用服务器 1 核 1G 24 元香港VPS[主机]
- MoeCloud→600 元 年 512MB 内存 5GB SSD 空间虚拟空间(主机)
- 使用 centos7 系统的国外 VPS 制作 google 镜像全球[VPS测评]
- DedeCMS 添加自定义函数的方法全球[VPS测评]
- Uovz→500 元 月 E5-2650*2 32GB 内存 480GB全球[VPS测评]
- 星轮数据 美国200G高防VPS 月付38元 香港BGP线路 月付仅需1美国VPS[主机]
- 基于CentOS系统的VPS安全设置与优化全球[VPS测评]
- Tmhhost新上香港CN2GIA VPS 三网回程CN2GIA 堪比国香港VPS[主机]
- 【黑五】virtono-英国VPS 首月最高3折 终身7折全球[VPS测评]
- 萌云英国伦敦GIA VPS 三网GIA 解锁流媒体全球[VPS测评]
- 如何设置指定路径跳转指定域名?全球[VPS测评]
- 1分钟快速读懂云计算全球[VPS测评]
- ERP库存管理系统HTML5模板 - DreamsPOS全球[VPS测评]
- 什么是VPS?国内VPS有哪些?全球[VPS测评]
- 人们为啥不爱吃海底捞了?海底捞上半年亏损达2.97亿 网友神评扎心全球[VPS测评]
- CMIVPS:香港vps/2核/2GB/20GB空间/不限流量/KVM/虚拟空间(主机)
- 如何根据业务需求选择合适的云服务器配置?全球[VPS测评]
- 者也vps年终特惠:全场云服务器7折终身优惠,赠1G内存,充1000送3全球[VPS测评]
- TmhHost优惠码:黑五优惠全场8折,洛杉矶vps、日本CN2、韩国C日本VPS[主机]
- 尊云:河南BGP云服务器2核4G仅68.6元/月,823.2元/年;香港香港VPS[主机]
- 尊云服务器年末钜惠活动:4核8G5M云服务器仅99元/月,1188元/年全球[VPS测评]
- 精美的宠物医院网站WordPress主题 - Valkuta全球[VPS测评]
- WordPress去掉分类链接中category目录的两种方法全球[VPS测评]
- 人们为啥不爱吃海底捞了?海底捞上半年亏损达2.97亿 网友神评扎心全球[VPS测评]
- V5.NET:香港/美国云服务器7折月付42港元起;香港物理服务器月付3美国VPS[主机]
转载请注明原文地址:https://www.motoll.com/read-241013.html