How to scrap a website using java? | Sololearn: Learn to code for FREE!

+3

How to scrap a website using java?

6/8/2017 8:56:56 AM

Shalina Bhargava

3 Answers

New Answer

+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.

+4

Google karlo na aap khud hi. Karke hame b btana please

+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