啤啤云怎么样?香港CN2线路vps,有香港安畅机房,全部9折,38.7元/月起
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

首先如何获取必应的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
- 限量抢 iON→1 核 2GB 40GB SSD 1TB 洛杉矶套餐年付全球[VPS测评]
- AlphaRacks→已合并 WootHosting NFPHostin全球[VPS测评]
- Centos 停止 终止 Ping 命令全球[VPS测评]
- js 随机显示广告图片的广告位代码全球[VPS测评]
- ¥163 年 512M 内存 20G SSD 100Mbps 不限流量 WINDOWS
- 疯狂猜成语 图猜成语一个人一边出汗一边看书是什么成语?全球[VPS测评]
- abelohost→100M 不限流量 VPS 无视版权 投诉 支持微信全球[VPS测评]
- WebUploader 设置只能上传单张图片全球[VPS测评]
- GetWebHosting→£5 年 1GB NVMe 空间 1TB 流虚拟空间(主机)
- HostHatch→芝加哥 伦敦大硬盘 VPS 年付 15 美元起 NV全球[VPS测评]
- 优惠 SparkVPS→$69 年资源池 VPS 8 核 8G 120G全球[VPS测评]
- 六六云→28 月 1GB 内存 20GB SSD 空间 不限流量 5Mb虚拟空间(主机)
- 疯狂猜成语 图猜成语一片草和一个人被拦腰斩断是什么成语?全球[VPS测评]
- Vultr 最新促销 新用户充多少送多少 最高送 100 刀 日本洛杉矶日本VPS[主机]
- public function list()报错 syntax erro全球[VPS测评]
- IOFLOOD→$229 月 2*E5-2660v1 128GB 内存 全球[VPS测评]
- HostMem 洛杉矶亚洲优化线路 CN2GT 1g内存 60g硬盘 年全球[VPS测评]
- 超值! CCleaner Pro 5折促销 折后仅98.02元全球[VPS测评]
- Cloudcone 年付 $9.9 的美国便宜 VPS 套餐补货美国VPS[主机]
- 半月湾洛杉矶三网 CN2 GIA 套餐,带宽升级到1Gbps,九折促销,全球[VPS测评]
- 云计算到底是谁发明的?全球[VPS测评]
- 外贸无界烟台市有多少跨境电商?烟台跨境电商开发平台,烟台跨境电商选品全球[VPS测评]
- 亿速云11.11上云狂欢节活动:2核4G国内/香港云服务器,价格999元香港VPS[主机]
- sugarhosts首推DECADE云服务器,香港云服务器,1核512M香港VPS[主机]
- 牛信云入选艾瑞《2022年中国跨境电商服务行业趋势报告》典型厂商全球[VPS测评]
- SugarHosts糖果主机:虚拟主机5折(有独立IP);香港/美国cn独立服务器[U]
- 老六云怎么样?香港cn2vps月付23元香港NTT月付9.9元香港VPS[主机]
- 初忆云:香港美国cn2云服务器30元;香港cn2高防vps30元,美国1美国VPS[主机]
- 恒创科技:开年采购季_香港CN2云服务器/美国CN2线路,低至299元/美国VPS[主机]
- 阿里云香港服务器多少钱一年?阿里云香港云服务器如何购买?香港VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-234885.html











