一、BOCE网站
BOCE(拨测)是一个提供在线网站测速和网络检测服务的平台。它主要面向网站管理员和开发者,提供多种工具来检测和优化网站性能。以下是BOCE提供的一些主要功能:
- 网站测速:用户可以检测网站在全国不同地区的加载速度,了解用户的访问体验。
- PING检测:检查网络连接的状态和稳定性,测试网络延迟和丢包率。
- DNS查询:帮助用户查询域名的DNS记录,包括A记录、CNAME记录、MX记录等,并进行DNS解析测试。
- 路由跟踪查询:显示数据包从用户设备到目标服务器所经过的路径,了解网络数据传输的路由情况。
- 劫持检测:检测网络是否存在DNS劫持或HTTP劫持的情况,保障网络安全。
- 域名污染检测:检查域名是否被污染,即域名解析结果在不同网络环境下是否一致。
- IPv6检测:测试网站是否支持IPv6访问,以及IPv6连接的稳定性和速度。
此外,BOCE还提供SSL检测、ICP备案查询、WHOIS查询等多种功能。BOCE的服务覆盖全国各省的电信、联通、移动、教育网等,确保检测结果的全面性和准确性。普通用户可以享受免费的基础检测服务,而需要更高频次检测的用户可以通过付费升级享受更多服务和功能。

注册之后每天登录可以获取到波点值,脚本信息如下:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time:2024.11.23
# @author:zayki
# @email:zayki@outlook.com
import os.path
import time
import ping3
import requests
from selenium import webdriver
from selenium.common import TimeoutException
from selenium.webdriver.edge.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC, wait
from selenium.webdriver.support.wait import WebDriverWait
import re
options = Options()
#options.add_argument("--headless") # 无头模式
#options.add_argument("--disable-gpu") # 禁用GPU加速
options.add_argument("--proxy-server=http://proxyip:808")
driver = webdriver.Edge(options=options)
driver.implicitly_wait(10)
base_url = "https://www.boce.com/"
driver.get(base_url)
print("Open url {0}".format(base_url))
# 记录初始标签页数量
initial_tab_count = len(driver.window_handles)
driver.maximize_window()
driver.find_element(By.CSS_SELECTOR, ".btn-link").click()
# driver.switch_to.frame(3)
# 根据iframe的src属性模糊匹配定位iframe元素
iframe_element = driver.find_element(By.CSS_SELECTOR,"iframe[src*='/user/#/login']")
# 切换到定位到的iframe
driver.switch_to.frame(iframe_element)
driver.find_element(By.CSS_SELECTOR, ".form").click()
driver.find_element(By.CSS_SELECTOR, ".el-form-item:nth-child(1) .el-input__inner").click()
driver.find_element(By.CSS_SELECTOR,'input[type="text"].el-input__inner').send_keys("telephone")
driver.find_element(By.CSS_SELECTOR,'input[type="password"].el-input__inner').send_keys("password")
driver.find_element(By.CSS_SELECTOR,"button.el-button--primary").click()
# 设置显式等待,等待frame从DOM中移除
try:
WebDriverWait(driver, 10).until_not(
EC.presence_of_element_located((By.CSS_SELECTOR, "iframe[src*='/user/#/login']"))
)
print("Frame is closed.")
driver.switch_to.default_content()
print("Login successfully.")
except TimeoutException:
print("Frame did not close within 10 seconds.")
获取波点信息如图所示:

该网站有公开的api,可供开发人员设计程序访问。
api文档:https://www.boce.com/document/api/140/133
诚挚的邀请墨友们注册:
https://www.boce.com/?k=Hj85cONfIf
附件链接:
chrome驱动下载链接,把版本换成自己浏览器的版本去下载对应的驱动版本。
https://googlechromelabs.github.io/chrome-for-testing/#stable
Binary Platform URL HTTP status
chrome linux64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/linux64/chrome-linux64.zip 200
chrome mac-arm64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-arm64/chrome-mac-arm64.zip 200
chrome mac-x64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-x64/chrome-mac-x64.zip 200
chrome win32 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win32/chrome-win32.zip 200
chrome win64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win64/chrome-win64.zip 200
chromedriver linux64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/linux64/chromedriver-linux64.zip 200
chromedriver mac-arm64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-arm64/chromedriver-mac-arm64.zip 200
chromedriver mac-x64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-x64/chromedriver-mac-x64.zip 200
chromedriver win32 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win32/chromedriver-win32.zip 200
chromedriver win64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win64/chromedriver-win64.zip 200
chrome-headless-shell linux64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/linux64/chrome-headless-shell-linux64.zip 200
chrome-headless-shell mac-arm64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-arm64/chrome-headless-shell-mac-arm64.zip 200
chrome-headless-shell mac-x64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/mac-x64/chrome-headless-shell-mac-x64.zip 200
chrome-headless-shell win32 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win32/chrome-headless-shell-win32.zip 200
chrome-headless-shell win64 https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/win64/chrome-headless-shell-win64.zip 200




