I keep getting HTTPStatusExceptions, whether it be 500/502/503, even 522. I'm guessing my IP has been blacklisted? What options do I have to ameliorate this?
I've noticed that while actually browsing the site, it takes forever to load, and that trying to view the source code actually times-out.
public Document getTPBDocument(String searchField) throws IOException {
Connection.Response response = Jsoup.connect("https://thepiratebay.org/search/" + searchField + "/0/99/0").userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.21 (KHTML, like Gecko) Chrome/19.0.1042.0 Safari/535.21")
.referrer("http://www.google.com")
.timeout(30000)
.followRedirects(true)
.header("Content-Type", "application/json;charset=UTF-8")
.execute();
return response.parse();
}