CombCloud,香港沙田CN2VPS测评,2核1G52元/月,安畅CN2 GIA 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
- OVZ 不推荐-HostUp→$3.5 月 2GB 内存 25GB SS虚拟空间(主机)
- 线路渣-StockServers→$3 月 2 核 2G 1G 宽带 5美国VPS[主机]
- 凯特云→21 元 月 512MB 内存 10GB SSD 空间 500G虚拟空间(主机)
- NameCheap - .me 域名注册优惠 仅需$3.88 年全球[VPS测评]
- 疯狂猜成语 图猜成语一个穿着绿衣服的人伸着手指很高兴的在说话是什么成语?全球[VPS测评]
- BuyVM→拉斯维加斯无限流量 KVM 每月 2 美元起 支持支付宝全球[VPS测评]
- 数脉科技五一劳动节促销 香港 cn2+bgp 独立服务器 330 元 月独立服务器[U]
- 傲游主机春季促销→全场 75 折 XEN KVM 香港&日本&韩国&新加日本VPS[主机]
- Oracle Cloud - 甲骨文云主机各机房测试 IP全球[VPS测评]
- DedeCMS 去掉后台登录页面广告的办法全球[VPS测评]
- 禁止 vim 复制内容缩进的办法全球[VPS测评]
- 双十一 微基主机预热活动→韩国机房双 E5-2630L 32G 韩国VPS[主机]
- Bacloud→新增荷兰机房 八五折 支持支付宝 芝加哥&立陶宛等全球[VPS测评]
- CentOS/Fedora/Ubuntu/Debian 一键安装 wge全球[VPS测评]
- 咖啡主机2021开年 新上香港/美国CN2轻量KVM ¥46.8/季美国VPS[主机]
- 咖啡主机 双十二 洛杉矶512M内存 40G硬盘 自带20Gbps高防 全球[VPS测评]
- Psychz便宜服务器黑五促销,E3 CPU/256G SSD/32G内全球[VPS测评]
- 阿里云国际ESSD轻量服务器,峰值带宽30Mbps,性价比选ESSD,便全球[VPS测评]
- Centralbilisim-1.2$ 月 土耳其 2核2G30G硬盘 全球[VPS测评]
- 上新优惠: UOVZ 莞港IPLC 1G 内存 20G SSD 100G全球[VPS测评]
- 快云科技:2核2G3M香港云BGP/新界CN2云服务器,月付33元香港VPS[主机]
- 桔子数据怎么样?便宜香港安畅CN2 VPS1核1G10M 28/月香港VPS[主机]
- 硅云香港云服务器怎么样?硅云香港vps访问速度快不快?香港VPS[主机]
- JGKVM:1核/512M/30G/600G/30Mbps/洛杉矶CN2全球[VPS测评]
- SugarHosts糖果主机双十一大促销 虚拟主机最高6折优惠全球[VPS测评]
- 菜单选中标记CSS3动画效果全球[VPS测评]
- Aoyohost:1核1GB/20GB/600GB流量/60Mbps端口香港VPS[主机]
- wikihost微基主机服务,香港稳定虚拟主机8折,3.73元/月起,C香港VPS[主机]
- CubeCloud,靠谱的香港cn2vps,美国cn2终身九折,原生IP美国VPS[主机]
- 外贸无界烟台市有多少跨境电商?烟台跨境电商开发平台,烟台跨境电商选品全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-233875.html











