小鹿云计算:香港双程cn2首月6折优惠;美国300G高防-8元/月;香港站群服务器20M+120IP-666元
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

首先如何获取必应的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
- 企鹅小屋→550 元 月 E5-26XX 16GB 内存 600GB 硬日本VPS[主机]
- XSServer→€2.69 月 2GB 内存 20GB SSD 空间 虚拟空间(主机)
- PHP 判断是否为支付宝客户端的函数全球[VPS测评]
- TMThosting→$3.11 月 KVM-512MB 14G SSD全球[VPS测评]
- 优惠 greencloudvps→全场 5 折优惠 1G 套餐低到$24日本VPS[主机]
- 便宜 $12.5 年 512M 内存 5G SSD 500G 流量@1G全球[VPS测评]
- servaRICA→$10 月 3 核 3GB 内存 3TB 空间 不限虚拟空间(主机)
- Justhost→俄罗斯 KVM 八折 87 卢布起 200M 无限流量全球[VPS测评]
- 特价 Hostodo→ 1 核 512MB 内存 8GB NVMe 硬盘全球[VPS测评]
- 便宜 VPS $25 年 1G 内存 15G SSD 2T 流量 1Gb全球[VPS测评]
- HostSolutions→€3.5 月 LXC-512MB 10G S全球[VPS测评]
- ChangeIP - 100Mbps 不限流量洛杉矶 KVM VPS 8全球[VPS测评]
- 6yun→45 元 月 256MB 内存 5GB 空间 2TB 流量 1虚拟空间(主机)
- thinkphp5 获取用户 ip tp5 获取客户端 ip全球[VPS测评]
- 免费主机 iON→1G 空间 25G 流量免费 WordPress 空间虚拟空间(主机)
- 触摸云春节特惠 全场VPS八五折特惠;香港gia和美国高防VPS ¥38美国VPS[主机]
- 微基主机 洛杉矶Cera高防VPS 1G内存/30G硬盘/CN2GIA/全球[VPS测评]
- OBHost→万圣节八折循环 32$ 月 巴基斯坦 1C2G 4T流量@全球[VPS测评]
- SAFOZI → 2.87$月付 突尼斯VPS 1核1G内存10G硬盘 全球[VPS测评]
- HKServerSolution 2核心 2G内存 20G HDD 10全球[VPS测评]
- 向日葵-漏洞科普:海外云服务器三种漏洞修复方法快收藏起来!全球[VPS测评]
- 快速云:vps云服务器的区别是什么?2022-08-1913:32来源:全球[VPS测评]
- wordpress 上传附件报错 “抱歉,出于安全的考虑,不支持此文件类全球[VPS测评]
- 六六云,2核2G香港云服务器/1000GB流量/50Mbps端口/KVM香港VPS[主机]
- 金斗云怎么样?香港CN2月付23元,圣何塞CN2月付22元香港VPS[主机]
- 者也vps年终特惠:全场云服务器7折终身优惠,赠1G内存,充1000送3全球[VPS测评]
- 情画数据:香港沙田CN2云服务器,2核/2G/5M带宽,年付200元香港VPS[主机]
- LOCVPS:全球云美国洛杉矶CN2 VPS,香港云地Xen VPS七折美国VPS[主机]
- 月神科技:香港云服务器,2核2G5M年付200元/年;美国2核2G50M美国VPS[主机]
- 好朋友51WORLD启动“地球克隆计划5”,我要去元宇宙参加了全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-249617.html











