I'm going to parse whois open api
I understand that you can obtain one domain information by inquiring whois open api
How can I save multiple urls in a txt file to obtain multiple (100+) domain information?
It's okay to use it without saving it in a txt file.
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class getParser {
public static void main(String[] args)throws Exception{
Document doc = Jsoup.connect("http://whois.kisa.or.kr/openapi/whois.jsp?query=kisa.or.kr&key=2017052820214890554185").get();
Elements titles1 = doc.select("regName");
for(Element e: titles1){
System.out.println ("Register: " + e.text()));
Elements titles2 = doc.select("adminEmail");
for(Element b: titles2){
System.out.println ("email address: " + b.text()));
Elements titles3 = doc.select("ip1");
for(Element c: titles3){
System.out.println ("iP address: " + c.text()));
}
}
}
}
}
Here's the source codeㅠ<
But I want to get information on multiple domains here at onceYo
Please teach me how to do itPlease
It's really urgent!(Crying)
I'm a beginner at coding, so if you can attach the source code,
I'd really appreciate it!
parsing api java
I don't have an API that I get at once, so if I put the domains I want in query, I think I have to get it several times over and over again. If you want to get 100 pieces of information, you have to spin it 100 times.
© 2024 OneMinuteCode. All rights reserved.