jsoup thread safety

java, jsoup

Solution

By using `Joup.parse`.

As long as you're not working on the same document, it creates new object internally.

https://groups.google.com/forum/?fromgroups=#!topic/jsoup/QIij7DEhj8E

This comes up from time to time; it's probably worth filing a documentation issue against this.

Problem

Jsoup `parse(String html)` is not ducumented as thread safe. How do you parse multiple documents with Jsoup concurrently? Thanks

Original source