Click here to Skip to main content
15,886,720 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Trying to parse html documents from a website inside java app using jsoup library. the problem is the website has more than 1k webpages that every time one of them will get opened when connecting; now when you want to use jsoup:

Document doc = Jsoup.connect("http://example.com/").get();
String title = doc.title();

the website's address needs to be typed there. so, how to get the exact address of the special website before pasing the html to include that within this code?

What I have tried:

Is there any library for java that can get html from an opened webpage in browser directly without needing to give it the address like the way jsoup requires?
Posted
Updated 10-Feb-22 7:51am
v3

1 solution

 
Share this answer
 
Comments
T1xT 10-Feb-22 14:06pm    
Do each webpages of the same website have different IPs?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900