求不封IP,不限次数的域名注册API查询接口。附万网批量查询接口及源码!

huayy huayy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
昨天晚上做了一套通过万网API查询域名的程序,但是每当查询100个左右的时候,就要换IP才能继续查询。
比较麻烦,求更好的API地址!

即“http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=" & dname”
这样的地址,要不限查询次数的。

附WINFORM代码



Dim Td As System.Threading.Thread '定义一个线程
Dim n As Int32

Sub search()

Try
Dim tb As New Data.DataTable
tb = code.Data_DataTable("select a_ci,id from a_ci where a_class = '0' order by newid()").Tables(0)
Dim i As Integer
For i = 0 To tb.Rows.Count - 1

Dim c As String
Dim dname = tb.Rows.Item(i).Item("a_ci") & ".com"
Dim regurl = "http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=" & dname
Dim reghtml As String = LoadURLData(regurl)

If GetKey(reghtml, "<returncode>", "</returncode>") <> "200" And GetKey(reghtml, "<original>", "</original>") <> "211 : Domain name is invalid" And GetKey(reghtml, "<original>", "</original>") <> "210 : Domain name is available" Then
c = "格式错误"
Else
If GetKey(reghtml, "<original>", "</original>") = "211 : Domain name is not available" Then
c = "已经注册"
ElseIf GetKey(reghtml, "<original>", "</original>") = "210 : Domain name is available" Then
c = "可以注册"
Else
c = GetKey(reghtml, "<original>", "</original>")
End If
End If

code.Data_update("update [a_ci] set a_class='" & c & "' where ID=" & tb.Rows.Item(i).Item("id"))

If c = "可以注册" Then
ListBox1.Items.Add(dname)
Dim q3 As Integer = Label3.Text
Label3.Text = q3 + 1
Else
Dim q2 As Integer = Label2.Text
Label2.Text = q2 + 1
End If

Dim q1 As Integer = Label1.Text
Label1.Text = q1 - 1

Next
Catch ex As Exception
ListBox1.Items.Add(ex.ToString)
End Try





End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Try
Label1.Text = code.Data_count("select count(id) from a_ci where a_class='0'")
Label2.Text = code.Data_count("select count(id) from a_ci where a_class='已经注册'")
Label3.Text = code.Data_count("select count(id) from a_ci where a_class='可以注册'")
Catch ex As Exception
ListBox1.Items.Add(ex.ToString)
End Try

End Sub


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Td = New System.Threading.Thread(AddressOf search) '实例化,指向abc过程
Td.Start() '开始运行线程
Catch ex As Exception
ListBox1.Items.Add(ex.ToString)
End Try
End Sub

Public Function LoadURLData(ByVal url As String) As String
Dim request As System.Net.HttpWebRequest = DirectCast(System.Net.HttpWebRequest.Create(url), System.Net.HttpWebRequest)
Dim response As System.Net.HttpWebResponse = DirectCast(request.GetResponse(), System.Net.HttpWebResponse)
Dim reader As New System.IO.StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding("gb2312"))
Return reader.ReadToEnd()
End Function


Function GetKey(ByVal HTML, ByVal Start, ByVal Last)
Dim body1 = Split(HTML, Start)
Dim body2 = Split(body1(1), Last)
GetKey = body2(0)
End Function


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End

End Sub
End Class

...全文

相关推荐

易语言利用万网取外网IP

易语言利用万网取外网IP源码系统结构:取外网IP, ======窗口程序集1 || ||------__启动窗口_创建完毕 || ||------取外网IP

weixin_38651445

e语言-易语言利用万网取外网IP

源码程序结合了易语言互联网支持库,实现取外网IP功能。源码是易语言POST的学习例程。

weixin_38744153

利用 Bind DLZ MySQL 构建智能 DNS .pdf

利用 Bind DLZ MySQL 构建智能 DNS (绝好的资料,亲手配置,绝对可用,识货的人下) 日期: 2010-3-7 【题 纲】 一、相关述语简介 二、智能 DNS 系统服务规划 三、安装配置 Bind-DLZ (介绍 Bind-dlz具体安装) 四、添加相关记录并进行测试 五、后续话题及相关参考. ....

lei_zhimin

企业在选择技术转移服务商时,如何考察其数据模型的准确性?.docx

科易网(厦门科易网科技有限公司)创立于2007年,是技术转移与科技创新数智化服务平台,拥有国家科技成果转化服务示范基地、国家技术转移示范机构等资质。平台以“AI+科技成果转化”为核心,整合成果、专利、专家、政策等多维数据,构建知识图谱与科创智能体,面向企业、政府、高校院所提供成果转化、技术需求对接、产业服务等数智化解决方案。截至目前,已服务全国企业超43万家,推动落地项目11800余项,总金额逾80亿元

BIZKEEN

【工业制造信息化】基于MySQL与SpringBoot的线体架设管理系统:产线设备部署进度跟踪平台设计与实现

内容概要:本文档为“线体架设”项目管理系统的技术实现文件,主要包含数据库表结构定义、Java后端服务代码与Vue前端页面代码,用于管理生产线设备的建设进度。系统核心功能包括:按年份、厂区、产品、线别等维度维护线体架设明细数据,支持数据的增删改查、分页查询、Excel导入导出及模板下载。后端基于Spring Boot与MyBatis-Plus实现,定义了实体类、Mapper接口、Service服务及Controller控制器,并实现了Excel导入时的数据校验、重复处理与状态归一化逻辑。前端采用Vue.js框架,实现了交互式的管理界面,支持条件搜索、表格展示、表单弹窗及文件上传导入。; 适合人群:具备Java Spring Boot、MyBatis-Plus、Vue.js及相关前后端开发技术栈基础的研发人员,尤其是从事生产制造类管理系统开发的工程师。; 使用场景及目标:①构建一个用于跟踪和管理工厂生产线设备架设进度的Web应用系统;②实现业务数据的高效录入(通过Excel批量导入)与可视化展示;③为开发者提供一个完整的、从前端到后端的CRUD及文件处理功能的开发参考案例。; 阅读建议:此资源是一套完整的工程化代码,建议结合数据库脚本、后端代码和前端页面进行联动阅读,重点关注`LineSetupDetailController`中的导入导出逻辑和`LineSetupDetailImportListener`中的Excel解析细节,以及前后端如何通过API进行数据交互。

qq_34953256
评论 6
收藏 已收藏
分享
返回顶部
huayy
C# 111,130 成员 642,539 内容