海量科技:香港2核2G云服务器,5M独享带宽,低至168元/月
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

首先如何获取必应的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
- RAKsmart 三网接入 300G 防御 无视 cc 防御 10~10全球[VPS测评]
- MoeVM→$5.99 月 256MB 内存 10GB 空间 50GB 虚拟空间(主机)
- porkbun - 域名注册.com 首年仅需 2 美刀全球[VPS测评]
- 大流量 VPS $6 月 512M 内存 30G SSD 5T 流量 1日本VPS[主机]
- 测评 HostMem→1G 内存套餐测评数据 电信回程走 CN2 GIA全球[VPS测评]
- 大流量 VPS $6 月 512M 内存 30G SSD 5T 流量 1日本VPS[主机]
- KhanWebHost→$6.5 月 4 核 3GB 内存 80GB N虚拟空间(主机)
- Leapswitch→$5 月 1GB 内存 30GB SSD 空间 5虚拟空间(主机)
- pacificrack→5 月特价便宜 VPS $9.89 年 KVM 全球[VPS测评]
- 搬瓦工 2020 年最新优惠码,终身优惠 6.58%,高质量美国 cn2美国VPS[主机]
- TripodCloud→$38.69 年 500G 流量 美国圣何塞 C美国VPS[主机]
- abelohost→100M 不限流量 VPS 无视版权 投诉 支持微信全球[VPS测评]
- HKServerSolution→599 元 年 2 核 2G 内存 2虚拟空间(主机)
- servaRICA→$15 月 3 核 3GB 内存 2TB 空间 不限虚拟空间(主机)
- 谷歌浏览器Google Chrome版本大全全球[VPS测评]
- WordPress网站PHP纯代码生成文章海报图片实现分享全球[VPS测评]
- Dijaminmurah-印度尼西亚 5.8$月付 1G内存25G硬盘 全球[VPS测评]
- [Cyber Monday]Virmach优惠全球[VPS测评]
- CloudIPLC 沪日IPLC → 老牌稳定可靠IPLC全球[VPS测评]
- CubeCloud,香港cn2,美国cn2 gia线路vps主机,2核1美国VPS[主机]
- VPS成立BurjeelHoldings全球[VPS测评]
- 六一云:国内BGP高防vps套餐,1核/1G/2Mbps/香港CN2,月香港VPS[主机]
- 九零云怎么样?香港将军澳VPS,美国圣何塞VPS 2核1G10M 47/美国VPS[主机]
- 水墨云:特惠香港、日本、韩国、洛杉矶小内存vps;IPLC专线/海外CN日本VPS[主机]
- 岚云:香港安迅/沙田CN2直连,75折起,1核/1G/30G SSD/1香港VPS[主机]
- 腾讯会议故障了 提示:会议发生异常请重新加入会议全球[VPS测评]
- 如何根据业务需求选择合适的云服务器配置?全球[VPS测评]
- 牛信云入选艾瑞《2022年中国跨境电商服务行业趋势报告》典型厂商全球[VPS测评]
- TabbyCloud:香港BGP云服务器,1核/1GB/20GB空间/2虚拟空间(主机)
- JGKVM:1核/512M/30G/600G/30Mbps/洛杉矶CN2全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-236375.html











