M
M
Michael Kim2016-07-28 02:42:13
Java
Michael Kim, 2016-07-28 02:42:13

Is it possible to scrape a website consistently with Jsoup?

I am writing a website parser using Jsoup. Sometimes everything works fine, sometimes a ConnectException Connection refused exception is thrown. As I understand it, there are many reasons for this. As well as from the client side (I doubt that there is something on my side, there is no firewall), and from the server side. Is it possible to fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2016-07-28
@Rou1997

I doubt there is anything on my end.

Try WebView, if the problem persists, then definitely not.

A
al_gon, 2016-11-03
@al_gon

jsoup is an ingenious HTML parser,
but as an http client it's not the best choice. get better apache http or google http client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question