EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Python代写
您的位置: 主页 > 编程案例 > Python代写 >
代做Python:通过ip138接口实现ip或域名查询-python爬虫 - Python代做
发布时间:2021-07-25 21:59:03浏览次数:
url = urllib.request.urlopen( http://wap.ip138.com/ip.asp?ip= domain) f = url.read().decode( utf-8 ) r = re.compile( br/ b 查看結果:(.*) /b br/ ) result = r.findall(f) #print type(result) for i in result: print( %s %s %s % (domain, i[0], i[1]))if __name__ == __main__ : if len(sys.argv) 2: print( 输入您IP地址或是网站域名 (比如:192.168.1.1 / www.baidu.com) ) sys.exit() INPUT=sys.argv[1] if not re.findall( (d{1,3}.){3}d{1,3} ,INPUT): if re.findall( (w .)?(w )(.D ){1,2} ,INPUT) : DOMAIN=INPUT DO(DOMAIN) else: print( 键入的IP地址和域名格式不对! ) else: if ISIP(INPUT) : IPADDRESS=INPUT URL(IPADDRESS) else: print( IP 详细地址不合理合法,请再次键入! )

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。