GreenCloudVPS:5折、6折优惠,日本、新加坡、香港等KVM VPS、大盘鸡vps
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

首先如何获取必应的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
- 真实测评 云创网络→1G 内存套餐测评数据 五一促销 年付 6 折优惠 全球[VPS测评]
- 四个倒着的脚字是什么成语?全球[VPS测评]
- servaRICA→$15 月 4 核 18GB 内存 240GB NV虚拟空间(主机)
- MySQL 获取当前时间及时间戳的方法全球[VPS测评]
- 补货通知 搬瓦工$29.99 年付 VPS 补货了 速度上了。全球[VPS测评]
- illyhosting→€3.55 月 1GB 内存 20GB SSD 虚拟空间(主机)
- Altınsoft→$63 月 E3-1240v3 16GB 内存 25全球[VPS测评]
- 新商家慎重-Rabbithosts – 4 核 8G 内存 40G 硬盘全球[VPS测评]
- js 判断是否为正整数方法全球[VPS测评]
- 2019 年搬瓦工最值提购买的 VPS 方案 CN2 GT CN2 GI全球[VPS测评]
- HoRain 日本 新加坡 G 口 VPS 上线,AWS 轻量实例,1 日本VPS[主机]
- Virmach 黑五闪购套餐更新,超优惠 请不停刷新本页面全球[VPS测评]
- [黑五]CloudCone→洛杉矶按小时计费 KVM 年付 10 美元起全球[VPS测评]
- DiyVM→香港 2G 内存 XEN 月付 69 元起 香港独立服务器 独立服务器[U]
- 便宜 $4.99 月 1 核 CPU 256M 内存 15G SSD 3全球[VPS测评]
- 便宜 $13.8 年 1G 内存 20G SSD 1T 流量 1Gbps全球[VPS测评]
- 如何为WordPress友情链接设置 nofollow 属性?全球[VPS测评]
- PIGYun香港/韩国/美国高端优化线路,优惠后最低月付14元起,可选香韩国VPS[主机]
- SwanCloud(天鹅云)阿里云国际版正规分销商 无须信用卡/PayP全球[VPS测评]
- 二三互联,香港cn2云服务器5折+85折双重优惠,稳定不限流量,1核1G香港VPS[主机]
- 腾讯会议故障了 提示:会议发生异常请重新加入会议全球[VPS测评]
- 奇维云优惠活动:香港CN21核1G1M带宽云服务器免费领取香港VPS[主机]
- anyhk:香港HGC/WTT/HKT线路、台湾HiNet线路NAT套餐香港VPS[主机]
- Linux chown -R 指令介绍与使用全球[VPS测评]
- 华为S2300 系列交换机如何修改密码?全球[VPS测评]
- 众创逸云:1核2G云服务器,不限流量vps/5Mbps/KVM/香港CN香港VPS[主机]
- 亚当云怎么样?香港安畅cn2vps带宽10M月付28元香港VPS[主机]
- HKserver:香港GIA VPS,1核/512MB/10GB空间/1虚拟空间(主机)
- 快速云:云计算分类和云计算的特点全球[VPS测评]
- 企鹅小屋:1核/512MB/10GB SSD空间/500GB流量/KVM虚拟空间(主机)
转载请注明原文地址:http://140.238.13.167:12355/read-235749.html











