In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article analyzes with you "can query ICP domain name filing information website API interface is how". The content is detailed and easy to understand. Friends who are interested in "you can query the API interface of the ICP domain name filing information website" can follow the editor's train of thought to read it in depth. I hope it will be helpful to everyone after reading. Let's follow the editor to learn the knowledge of "you can query the ICP domain name filing information website API interface".
In many places, you need to enter the record number of the domain name to fill in the information, and you have to use it each time:
Search for filing query-click on the link-enter the domain name-(some sites also need to enter CAPTCHA)-get the record number-copy it.
This method is too cumbersome, so I tried to search the domain name filing API API and found some available, but most of them need to register and log in or pay for it, so find a free API and change it and publish it. There's not much nonsense.
Interface address:
Http://www.beiancx.cn/icpcx?url_long=http://www.baidu.cn/
Source of API:
Http://www.beiancx.cn
Calling code
Demo of HP call:
$url = 'http://www.baidu.com';$api_url =' http://www.beiancx.cn/icpcx?url_long=http://www.baidu.cn/;$short_url = file_get_contents ($api_url); echo $short_url
Demo of JAVA call:
Public static void main (String path []) throws Exception {URL u = new URL ("http://www.beiancx.cn/icpcx?url_long=http://www.baidu.cn/");InputStream in = u.openStream (); ByteArrayOutputStream out = new ByteArrayOutputStream (); try {byte buf [] = new byte [1024]; int read = 0X while (read = in .read (buf)) > 0) {out.write (buf, 0, read);}} finally {if (in! = null) {in .close () }} byte b [] = out.toByteArray (); System.out.println (new String (b, "utf-8"));}
Demo of Python call:
Import urllib, urllib2, syshost = 'http://www.beiancx.cn'path =' / icpcx?url_long'method = 'GET'querys =' url_long=http%3A%2F%2Fwww.baidu.com'bodys = {} url = host + path +'?'+ querysrequest = urllib2.Request (url) response = urllib2.urlopen (request) content = response.read () if (content): print (content) about the ICP domain name filing information website API interface is shared here. I hope that the above content will enable you to improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.