如何使用C#与Google查找所有* .tv,* .kz域名? [英] How to find all *.tv, *.kz domains using C# with Google?

查看:169
本文介绍了如何使用C#与Google查找所有* .tv,* .kz域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。

我需要找到与国家特定域名扩展相关联的所有域名吗?

因为我需要找出所有域名(网址和总数)* .tv,* .kz扩展(电视和kz只是示例。)用于我的静力学研究论文。大多数顶级域名提供商都不愿意分享这些信息。如果谷歌搜索site:*。tv,那么我可以列出所有* .tv域名(当然因为子域名而有很多重复)。但仍有挑战将域名网址刮到文本列表中。如果它需要编程,那么我更喜欢C#,我的主要编程语言

感谢您的建议。

Hi.
I need to find all domains tied to country specific domain extension?
Because I need to find out all domains (url and total number) with *.tv, *.kz extensions( tv and kz are just example.) for my statics research paper. Most top domain providers are unwilling to share that info. If make Google search "site:*.tv" then I can list all *.tv domains( of course many duplicates because of subdomains). But still have challenge to scrape domain urls to text list. If it requires programming then I prefer C# which my main programming language
Thank you for your suggestions.

推荐答案

搜索字符串将是某种东西比如site:.tv。您需要下载HTTP响应并刮取获取的HTML,这需要一些HTML解析器。首先,它可能是HTML Agility Pack或其他东西。请看我过去的答案:

如何使用c#从网址获取特定数据 [ ^ ],

从网页中获取特定数据 [ ^ ],

参见如何从其他网站获取数据 [ ^ ]。



-SA
The search string would be something like "site:.tv". You need to download HTTP response and scrape obtained HTML, and this needs some HTML parser. It could be, first of all, HTML Agility Pack, or something else. Please see my past answers:
How to get particular data from a url using c#[^],
get specific data from web page[^],
see also How to get the data from another site[^].

—SA


这篇关于如何使用C#与Google查找所有* .tv,* .kz域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆