搬瓦工:全场VPS 9折优惠,10Gbps(美国cn2 gia+日本软银)+1Gbps香港cn2 gia
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

首先如何获取必应的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
- 便宜域名 腾讯云→23 元可以购买 10 年的 XYZ 域名全球[VPS测评]
- DedeCMS 软件模型默认下载链接样式修改 DedeCMS 软件模型默全球[VPS测评]
- js jquery 获取 html select 当前选中值全球[VPS测评]
- 免费换 IP LosAngelesvps→1.5G 内存套餐年付$19.全球[VPS测评]
- DediPath 元旦优惠→VPS 全场 8 折 Hybrid Serv全球[VPS测评]
- HostSolutions→罗马尼亚大硬盘 KVM 抗投诉 1TB 月付全球[VPS测评]
- 玩具-JustHost→11 元 月 1 核 512M 内存 5G 硬盘全球[VPS测评]
- 恒创科技美国服务器限时终身 5 折预售,设备全新,CN2 GIA 回国带美国VPS[主机]
- Kvmla 全场 vps 终身七折+送 1G 内存,2 核 2G 仅 6香港VPS[主机]
- 五月 Name.com 注册新的.biz 域名 shop 域名价格为 2全球[VPS测评]
- 六六云美西 GIA 提供美国原生 IP,解锁 Netflix,80M 端美国VPS[主机]
- ITLDC - 保加利亚主机商 8 数据中心可选全球[VPS测评]
- OLVPS→104 元 月 1GB 内存 50GB 空间 2TB 流量 虚拟空间(主机)
- sered 西班牙多IP站群VPS 配置2核2GB起,20个IP起,最高站群服务器[IP]
- 从Alpnames域名注册商跑路看我们应该如何选择域名注册商全球[VPS测评]
- XetHost-匈牙利 1C512MB10GB 100Mbps 不限流量全球[VPS测评]
- CloudCone → 256M 内存 10G 储存 1T流量 年付$1全球[VPS测评]
- 狗云DogYun,香港cn2云服务器/优惠码/流量包,按小时计费云服务器香港VPS[主机]
- 阳帝云:香港大宽带vps仅15元/月;美国vps200G防御仅28元/月美国VPS[主机]
- 六六云:1核/1GB/20GB硬盘/500GB流量/30Mbps/KVM香港VPS[主机]
- 青云互联:香港弹性云CN2直连线路,全场8折,免费windows系统,月WINDOWS
- php168数据库配置文件在哪里?如何修改数据库配置文件全球[VPS测评]
- HostHatch:1核/2GB/20GB空间/KVM/香港/洛杉矶/纽虚拟空间(主机)
- 百看不厌的文案,抖音唯美文案。全球[VPS测评]
- 中国云计算,能啃的只剩硬骨头了全球[VPS测评]
- 酷锐云:香港安畅机房4H/4G/60G/20Mbps,45元/月;香港C香港VPS[主机]
- 印象云:1核/1G/40G固态/800G/50Mbps/洛杉矶高防vps全球[VPS测评]
- UCloud云服务器2020年度大促:北京/上海云服务器/香港免备案云服香港VPS[主机]
- 搬瓦工vps:10Gbps美国vps cn2 gia,1Gbps香港cn日本VPS[主机]
- 亿速云“双11”上云狂欢大促 高防云服务器、裸金属服务器优惠套餐全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-237397.html











