How to scrap a website using java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to scrap a website using java?

8th Jun 2017, 8:56 AM
Shalina Bhargava
Shalina Bhargava - avatar
3 Answers
+ 12
I'm pretty sure Java can use Selenium, so if nothing else you can use that. However I'd recommend a different method as Selenium can be a bit slow. I don't know Java, so I hope someone else can deliver an answer. Might wanna look up some tutorials on YouTube or something.
8th Jun 2017, 9:08 AM
Ahri Fox
Ahri Fox - avatar
+ 4
Google karlo na aap khud hi. Karke hame b btana please
8th Jun 2017, 9:23 AM
Manender Dutt
Manender Dutt - avatar
+ 4
This code saves the response to an https request. Beware that it skips the SSL certificate validation as it trusts all certificates by default. It's good to get the page source but you still have to implement your filtering. Have a look at JSOUP, you might find it useful for you purpose. https://code.sololearn.com/cLC882su5fG6/?ref=app
8th Jun 2017, 2:52 PM
seamiki
seamiki - avatar